Skip to content

Commit d781b9d

Browse files
committed
2 parents a65510d + 7878bb1 commit d781b9d

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

contrib/mmts/tests/regress.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--create extension multimaster;
2+
ALTER DATABASE "postgres" SET lc_messages TO 'C';
3+
ALTER DATABASE "postgres" SET lc_monetary TO 'C';
4+
ALTER DATABASE "postgres" SET lc_numeric TO 'C';
5+
ALTER DATABASE "postgres" SET lc_time TO 'C';
6+
ALTER DATABASE "postgres" SET timezone_abbreviations TO 'Default';

contrib/mmts/tests/reinit-mm.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
n_nodes=3
2-
export PATH=~/code/postgres_cluster/install/bin/:$PATH
2+
export PATH=~/code/postgres_cluster/tmp_install/bin/:$PATH
33
ulimit -c unlimited
44
pkill -9 postgres
55
pkill -9 arbiter
@@ -19,7 +19,7 @@ do
1919
port=$((5431 + i))
2020
raft_port=$((6665 + i))
2121
arbiter_port=$((7000 + i))
22-
conn_str="$conn_str${sep}dbname=regression user=stas host=127.0.0.1 port=$port arbiterport=$arbiter_port sslmode=disable"
22+
conn_str="$conn_str${sep}dbname=regression user=stas host=127.0.0.1 port=$port arbiter_port=$arbiter_port sslmode=disable"
2323
raft_conn_str="$raft_conn_str${sep}${i}:localhost:$raft_port"
2424
sep=","
2525
initdb node$i
@@ -46,7 +46,7 @@ do
4646
max_worker_processes = 15
4747
max_replication_slots = 10
4848
max_wal_senders = 10
49-
shared_preload_libraries = 'raftable,multimaster'
49+
shared_preload_libraries = 'multimaster'
5050
default_transaction_isolation = 'repeatable read'
5151
5252
multimaster.workers = 1
@@ -70,6 +70,6 @@ SQL
7070
done
7171

7272
sleep 10
73-
psql regression < ../../../regress.sql
73+
psql regression < regress.sql
7474

7575
echo Done

contrib/mmts/tests2/test_regression.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ class RecoveryTest(unittest.TestCase):
77
@classmethod
88
def setUpClass(self):
99
print('setUp')
10-
# subprocess.check_call(['docker-compose','up',
11-
# '--force-recreate',
12-
# '--build',
13-
# '-d'])
10+
subprocess.check_call(['docker-compose','up',
11+
'--force-recreate',
12+
'--build',
13+
'-d'])
1414

1515
@classmethod
1616
def tearDownClass(self):
1717
print('tearDown')
18-
# subprocess.check_call(['docker-compose','down'])
18+
subprocess.check_call(['docker-compose','down'])
1919

2020
def test_regression(self):
2121
# XXX: make smth clever here

0 commit comments

Comments
 (0)