Skip to content

Commit

Permalink
core: fix test flakiness in retriableStream hedging deadlock test
Browse files Browse the repository at this point in the history
  • Loading branch information
YifeiZhuang committed Oct 8, 2024
1 parent 94a0a0d commit f7301fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/test/java/io/grpc/internal/RetriableStreamTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2592,9 +2592,7 @@ public void run() {
.closed(Status.fromCode(NON_FATAL_STATUS_CODE_1), REFUSED, new Metadata());
} finally {
transport2Lock.unlock();
if (transport1Lock.tryLock()) {
transport1Lock.unlock();
}
transport1Lock.unlock();
}
}
}, "Thread-transport2");
Expand Down

0 comments on commit f7301fa

Please sign in to comment.