Skip to content

Commit d7dac9e

Browse files
committed
Support in to two diffreant error code that can cause the issue
1 parent 2fde678 commit d7dac9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client-v2/src/test/java/com/clickhouse/client/HttpTransportTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,8 @@ public void testErrorWithSendProgressHeaders() throws Exception {
778778
try (QueryResponse resp = client.query("INSERT INTO test_omm_table SELECT randomString(16) FROM numbers(300000000)", settings).get()) {
779779

780780
} catch (ServerException e) {
781-
Assert.assertEquals(e.getCode(), 241);
781+
// 241 - MEMORY_LIMIT_EXCEEDED or 243 -NOT_ENOUGH_SPACE
782+
Assert.assertTrue(e.getCode() == 241 || e.getCode() == 242);
782783
}
783784
}
784785
}

0 commit comments

Comments
 (0)