Skip to content

Commit b999265

Browse files
committed
Update tests for blocksql->snapshot migration
Signed-off-by: mdouglas47 <[email protected]>
1 parent e65adeb commit b999265

File tree

30 files changed

+75
-23
lines changed

30 files changed

+75
-23
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sql_tranlevel_default blocksock

tests/basic.test/runit

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ if ! diff dupins4.out dupins4.exp; then
259259
fi
260260

261261

262-
if echo $DBNAME | grep 'snapshot\|rowlocks' ; then
263-
cdb2sql ${CDB2_OPTIONS} $dbnm default "insert into t2 values(1)"
264-
fi
262+
cdb2sql ${CDB2_OPTIONS} $dbnm default "insert into t2 values(1)"
265263

266264
assertcnt t2 2
267265
do_verify t2
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sql_tranlevel_default blocksock

tests/comdb2_snapshot_lsn.test/runit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function run_test
2020

2121
echo "Base-case, not snapshot, should return NULL"
2222
result=$($CDB2SQL_EXE $CDB2_OPTIONS $DBNAME --host $master - <<EOF
23+
set transaction blocksql
2324
select comdb2_snapshot_lsn()
2425
EOF
2526
)
@@ -31,6 +32,7 @@ EOF
3132
echo "use_current_lsn_for_non_snapshot"
3233
$CDB2SQL_EXE $CDB2_OPTIONS $DBNAME --host $master "put tunable 'use_current_lsn_for_non_snapshot' 1"
3334
result=$($CDB2SQL_EXE $CDB2_OPTIONS $DBNAME --host $master - <<EOF
35+
set transaction blocksql
3436
select comdb2_snapshot_lsn()
3537
EOF
3638
)

tests/dohsql_leaks.test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ else
44
include $(TESTSROOTDIR)/testcase.mk
55
endif
66
ifeq ($(TEST_TIMEOUT),)
7-
export TEST_TIMEOUT=20m
7+
export TEST_TIMEOUT=25m
88
endif

tests/fingerprints.test/t02.req.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
(version='1')
22
(xyz=1)
3+
(xyz=0)
34
(xyz=1)
45
(xyz=3)
6+
(xyz=0)
57
(xyz=2)
68
(xyz=6)
79
(xyz=4)

tests/multichunk.test/runit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bash -n "$0" | exit 1
44
cdb2="cdb2sql --tabs -s ${CDB2_OPTIONS} $1 default "
55

66
function multi_chunk {
7+
echo "set transaction blocksql"
78
echo "set transaction chunk $chunk"
89
echo 'begin'
910
from=1

tests/queuedb_locks.test/runit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cdb2sql --host $rep ${CDB2_OPTIONS} $dbname 'create table t(a int)'
1212
cdb2sql --host $rep ${CDB2_OPTIONS} $dbname 'create default lua consumer test on (table t for insert)'
1313

1414
cdb2sql --host $rep ${CDB2_OPTIONS} $dbname - <<'EOF'
15+
set transaction blocksql
1516
set transaction chunk 100
1617
begin
1718
insert into t select value from generate_series(1, 1000000)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sql_tranlevel_default blocksock

tests/remsql.test/output.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(a=3, b=3)
2020
(TEST='REMSQL DEDUP TEST 3')
2121
(a=0, b=0)
22-
(a=0, b=3)
22+
(a=3, b=3)
2323
(rows inserted=1)
2424
(hint='inserted 3 records from remote to source; source should have 3 records')
2525
(COUNT(*)=3)

0 commit comments

Comments
 (0)