Fix broken regression test for native replication
authorYugo Nagata <nagata@sraoss.co.jp>
Tue, 18 Aug 2015 10:31:03 +0000 (19:31 +0900)
committerYugo Nagata <nagata@sraoss.co.jp>
Wed, 19 Aug 2015 07:47:03 +0000 (16:47 +0900)
Test for insert lock didn't work.

test/regression/tests/002.native_replication/test.sh

index e05912ba96394c56508c66a7541f57599c7caebe..2ddda4d7ab93f72a53f260c6852f7c3867d18155 100755 (executable)
@@ -50,15 +50,25 @@ java PgTester 100 &
 java PgTester 1000 &
 wait
 
+$PSQL -p 11001 test <<EOF
+\copy (SELECT * FROM t1 ORDER BY i) to 'dump_t0.txt'
+EOF
+
+$PSQL -p 11001 test <<EOF
+\copy (SELECT * FROM t1 ORDER BY i) to 'dump_t1.txt'
+EOF
+
 $PSQL -p 11000 test <<EOF
-\copy (SELECT * FROM t1 ORDER BY i) to 'dump0.txt'
+\copy (SELECT * FROM sequencetester ORDER BY id) to 'dump_s0.txt'
 EOF
 
 $PSQL -p 11001 test <<EOF
-\copy (SELECT * FROM t1 ORDER BY i) to 'dump1.txt'
+\copy (SELECT * FROM sequencetester ORDER BY id) to 'dump_s1.txt'
 EOF
 
 # check if database contents are identical
+cat dump_t0.txt dump_s0.txt > dump0.txt 
+cat dump_t1.txt dump_s1.txt > dump1.txt 
 diff dump0.txt dump1.txt
 if [ $? != 0 ];then
        # contents are not identical