Skip to content

Commit b85dc68

Browse files
committed
testing: fix GrpcCleanupRule issue when retrying tests
Fix an issue in GrpcCleanupRule when tests are retried and the teardown() method is invoked multiple times, causing Stopwatch instance to throw an IllegalStateException. fixes #8917.
1 parent df6db6f commit b85dc68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testing/src/main/java/io/grpc/testing/GrpcCleanupRule.java

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public void evaluate() throws Throwable {
175175
* Releases all the registered resources.
176176
*/
177177
private void teardown() {
178+
stopwatch.reset();
178179
stopwatch.start();
179180

180181
if (firstException == null) {

0 commit comments

Comments
 (0)