Skip to content

Commit 0ff2639

Browse files
committed
Fix client warning tests (CASSANDRA-10876)
1 parent b7b6ecb commit 0ff2639

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

integration/client_warnings_test.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ def setup
3737
CREATE TABLE test (k int, v text, PRIMARY KEY (k, v));
3838
CQL
3939

40-
@query = "BEGIN UNLOGGED BATCH INSERT INTO test (k, v) VALUES (0, '#{'a' * 5 * 1025}') APPLY BATCH"
41-
@exceeding_warning = Regexp.new(/Batch of prepared statements for .* is of size .*, exceeding specified threshold of 5120/)
42-
@partition_warning = Regexp.new(/Unlogged batch covering 2 partitions detected against table .* You should use a logged \
43-
batch for atomicity, or asynchronous writes for performance/)
40+
@query = "BEGIN UNLOGGED BATCH
41+
INSERT INTO test (k, v) VALUES (0, '#{'a' * 5 * 1025}')
42+
INSERT INTO test (k, v) VALUES (1, '#{'a' * 5 * 1025}')
43+
APPLY BATCH"
44+
@exceeding_warning = Regexp.new(/Batch.* for .* is of size .*, exceeding specified threshold of 5120/)
45+
@partition_warning = Regexp.new(/Unlogged batch covering 2 partitions detected against table .* You should use a \
46+
logged batch for atomicity, or asynchronous writes for performance/)
4447
end
4548
end
4649

0 commit comments

Comments
 (0)