Skip to content

Commit b93369c

Browse files
committed
tests: change test_udts to work with smp=1
trying to check if this improves the stability of the `test_can_register_udt_before_connecting` in our CI runs Fixes: #264
1 parent 48399d6 commit b93369c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/integration/standard/test_udts.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import os
1516
import unittest
16-
1717
from collections import namedtuple
1818
from functools import partial
19-
import six
2019

20+
import six
2121
from cassandra import InvalidRequest
2222
from cassandra.cluster import UserTypeDoesNotExist, ExecutionProfile, EXEC_PROFILE_DEFAULT
2323
from cassandra.query import dict_factory
@@ -33,6 +33,7 @@
3333

3434

3535
def setup_module():
36+
os.environ['SCYLLA_EXT_OPTS'] = "--smp 1"
3637
use_singledc()
3738
update_datatypes()
3839

@@ -125,15 +126,15 @@ def test_can_register_udt_before_connecting(self):
125126

126127
s.execute("""
127128
CREATE KEYSPACE udt_test_register_before_connecting
128-
WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor': '1' }
129+
WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor': '3' }
129130
""")
130131
s.set_keyspace("udt_test_register_before_connecting")
131132
s.execute("CREATE TYPE user (age int, name text)")
132133
s.execute("CREATE TABLE mytable (a int PRIMARY KEY, b frozen<user>)")
133134

134135
s.execute("""
135136
CREATE KEYSPACE udt_test_register_before_connecting2
136-
WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor': '1' }
137+
WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor': '3' }
137138
""")
138139
s.set_keyspace("udt_test_register_before_connecting2")
139140
s.execute("CREATE TYPE user (state text, is_cool boolean)")

0 commit comments

Comments
 (0)