Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 4118504

Browse files
committed
Fix sonarlint bug
1 parent 0dd18fa commit 4118504

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestSubscription.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ public List<GraphQLResponse> awaitAndGetNextResponses(
309309
Thread.sleep(timeout);
310310
} catch (InterruptedException e) {
311311
fail("Unable to wait the specified amount of time.", e);
312+
// Restore interrupted state
313+
Thread.currentThread().interrupt();
312314
}
313315
}
314316

0 commit comments

Comments
 (0)