Skip to content

Commit 2129078

Browse files
authored
core: fix test flakiness in retriableStream hedging deadlock test (#11606)
1 parent 2e9c3e1 commit 2129078

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/test/java/io/grpc/internal/RetriableStreamTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,9 +2592,7 @@ public void run() {
25922592
.closed(Status.fromCode(NON_FATAL_STATUS_CODE_1), REFUSED, new Metadata());
25932593
} finally {
25942594
transport2Lock.unlock();
2595-
if (transport1Lock.tryLock()) {
2596-
transport1Lock.unlock();
2597-
}
2595+
transport1Lock.unlock();
25982596
}
25992597
}
26002598
}, "Thread-transport2");

0 commit comments

Comments
 (0)