We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8b8ede commit 7bf805dCopy full SHA for 7bf805d
1 file changed
src/test/java/io/weaviate/client6/v1/api/collections/batch/BatchContextTest.java
@@ -124,8 +124,14 @@ public void reset() throws Exception {
124
in = null;
125
out = null;
126
127
+ // This resets the interrupted flag, allowing use to await the executors.
128
+ Thread.interrupted();
129
+
130
backgroundThread.shutdownNow();
131
+ backgroundThread.awaitTermination(10, TimeUnit.SECONDS);
132
133
eventThread.shutdownNow();
134
+ eventThread.awaitTermination(10, TimeUnit.SECONDS);
135
136
REQUEST_QUEUE.clear();
137
}
@@ -428,7 +434,6 @@ public void test_maxReconnectRetries() throws Exception {
428
434
429
435
430
436
out.hangup();
431
-
432
437
Assertions.assertThatThrownBy(this::closeContext)
433
438
.isInstanceOf(IOException.class)
439
.hasMessageContaining("Server unavailable");
0 commit comments