Skip to content

Commit 8944474

Browse files
committed
cc clickhouse: fix flaky MultilineQueryWithComments test under msan
commit_hash:108c3a3013e6693db48bedffb3a1400010334b82
1 parent e209f90 commit 8944474

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clickhouse/src/storages/tests/escape_chtest.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ WITH
127127
SELECT b.str, a.num FROM a JOIN b ON a.num = b.num; -- because why not
128128
/* note that multi-statements are not allowed by clickhouse! */
129129
)"};
130-
const auto res = cluster->Execute(q, 5, "we").As<DataWithValues>();
130+
// 20s to avoid flaps in CI, in a perfect world ~300 should do.
131+
const storages::clickhouse::CommandControl cc{std::chrono::seconds{20}};
132+
const auto res = cluster->Execute(cc, q, 5, "we").As<DataWithValues>();
131133
EXPECT_EQ(res.strings.size(), 5);
132134
EXPECT_EQ(res.strings.front().size(), 2);
133135
}

0 commit comments

Comments
 (0)