Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Feb 7, 2024
1 parent 69e7ced commit 33031c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void rethrow_error_if_UDS_channel_closed() {
var client = new TestClient(channelHandler);
stopRustCoreLibMock();
// If we don't sleep, we will get another error - why?
//Thread.sleep(200);
// Thread.sleep(200);
try {
var exception =
assertThrows(
Expand Down
2 changes: 2 additions & 0 deletions java/client/src/test/java/glide/utils/RustCoreMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ public static String start(GlideMock messageProcessor) {
public static void stop() {
if (instance != null) {
instance.channel.close().syncUninterruptibly();
var before = System.nanoTime();
instance.group.shutdownGracefully().get(10, TimeUnit.SECONDS);
System.out.printf(" === shutdownGracefully took %d%n", (System.nanoTime() - before) / 1000);
instance = null;
}
}
Expand Down

0 comments on commit 33031c2

Please sign in to comment.