Skip to content

Commit 2bbb606

Browse files
committed
Fix cloud tests
1 parent b35806d commit 2bbb606

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

client-v2/src/test/java/com/clickhouse/client/api/data_formats/internal/BaseReaderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ public void testReadingStringValue() throws Exception {
580580
final String table = "test_reading_stringvalue";
581581

582582
client.execute("DROP TABLE IF EXISTS " + table).get();
583-
client.execute("CREATE TABLE " + table + " (id Int32, s String, fs FixedString(5), e FixedString(1)) ENGINE = Memory").get();
583+
client.execute("CREATE TABLE " + table + " (id Int32, s String, fs FixedString(5), e FixedString(1)) ENGINE = MergeTree ORDER BY id").get();
584584
client.execute("INSERT INTO " + table + " VALUES (1, 'hello', 'world', 'a'), (2, 'ClickHouse', 'Rocks', 'b')").get();
585585

586586
Client customClient = newClient()

client-v2/src/test/java/com/clickhouse/client/metrics/MetricsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public void testRegisterMetrics() throws Exception {
6767
Assert.assertEquals((int) available.value(), 1);
6868
Assert.assertEquals((int) leased.value(), 0);
6969

70+
final long maxDelay = isCloud() ? 300 : 15;
7071
Runnable task = () -> {
71-
final long maxDelay = 15;
7272
long t1 = System.currentTimeMillis();
7373
try (QueryResponse response = client.query("SELECT 1").get()) {
7474
long t = System.currentTimeMillis() - t1;

0 commit comments

Comments
 (0)