Skip to content

Commit 50c6266

Browse files
committed
Removed checking thread because it doesn't guarantee anything
1 parent a8f3af1 commit 50c6266

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

client-v2/src/test/java/com/clickhouse/client/insert/InsertTests.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,10 @@ public void insertRawDataAsync(boolean async) throws Exception {
282282
writer.flush();
283283
client.insert(tableName, new ByteArrayInputStream(data.toByteArray()),
284284
ClickHouseFormat.TSV, localSettings).whenComplete((response, throwable) -> {
285-
OperationMetrics metrics = response.getMetrics();
286285
assertEquals((int)response.getWrittenRows(), 1000 );
287286

288287
List<GenericRecord> records = client.queryAll("SELECT * FROM " + tableName);
289288
assertEquals(records.size(), 1000);
290-
assertTrue(Thread.currentThread().getName()
291-
.startsWith(async ? "pool-" : "main"), "Threads starts with " + Thread.currentThread().getName());
292289
})
293290
.join().close(); // wait operation complete. only for tests
294291
}

0 commit comments

Comments
 (0)