Skip to content

Commit cb034e3

Browse files
authored
Merge pull request #181 from muzarski/consistency-two-nodes-tests-fix
ci: fix ConsistencyTwoNodeClusterTests
2 parents 3645cd1 + 70b63de commit cb034e3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ifndef SCYLLA_TEST_FILTER
55
SCYLLA_TEST_FILTER := $(subst ${SPACE},${EMPTY},ClusterTests.*\
66
:BasicsTests.*\
77
:ConfigTests.*\
8+
:ConsistencyTwoNodeClusterTests.*\
89
:ConsistencyThreeNodeClusterTests.*\
910
:PreparedTests.*\
1011
:CassandraTypes/CassandraTypesTests/*.Integration_Cassandra_*\
@@ -29,6 +30,7 @@ ifndef CASSANDRA_TEST_FILTER
2930
CASSANDRA_TEST_FILTER := $(subst ${SPACE},${EMPTY},ClusterTests.*\
3031
:BasicsTests.*\
3132
:ConfigTests.*\
33+
:ConsistencyTwoNodeClusterTests.*\
3234
:ConsistencyThreeNodeClusterTests.*\
3335
:PreparedTests.*\
3436
:CassandraTypes/CassandraTypesTests/*.Integration_Cassandra_*\

tests/src/integration/tests/test_consistency.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
#include "integration.hpp"
18+
#include "options.hpp"
1819

1920
/**
2021
* Consistency integration tests; two node cluster
@@ -227,7 +228,9 @@ CASSANDRA_INTEGRATION_TEST_F(ConsistencyTwoNodeClusterTests, SimpleEachQuorum) {
227228
session_.execute(insert_);
228229
// Handle `EACH_QUORUM` read support; added to C* v3.0.0
229230
// https://issues.apache.org/jira/browse/CASSANDRA-9602
230-
if (server_version_ >= "3.0.0") {
231+
//
232+
// Scylla supports `EACH_QUORUM` for writes only.
233+
if (!Options::is_scylla() && server_version_ >= "3.0.0") {
231234
session_.execute(select_);
232235
} else {
233236
ASSERT_EQ(CASS_ERROR_SERVER_INVALID_QUERY, session_.execute(select_, false).error_code());

0 commit comments

Comments
 (0)