Permalink
Browse files

Add in wait_for_catchup to 3 of the tests where we do additional

processing as they were tending to terminate before the test was complete
  • Loading branch information...
1 parent a739446 commit 400559014a84f258040e75eb941f69ffebb78fa3 Christopher Browne committed Mar 22, 2007
Showing with 3 additions and 1 deletion.
  1. +1 −1 tests/testddl/generate_dml.sh
  2. +1 −0 tests/testinherit/generate_dml.sh
  3. +1 −0 tests/testlargetuples/generate_dml.sh
@@ -85,6 +85,6 @@ do_initdata()
eval db=\$DB${originnode}
status "loading extra data to node $db"
$pgbindir/psql -h $host -p $port -U $user -d $db < $mktmp/generate.data 1> $LOG 2> $LOG
-
+ wait_for_catchup
status "done"
}
@@ -78,5 +78,6 @@ do_initdata()
if [ $? -ne 0 ]; then
warn 3 "do_initdata failed, see $mktmp/initdata.log for details"
fi
+ wait_for_catchup
status "done"
}
@@ -78,4 +78,5 @@ do_initdata()
status "loading data"
$pgbindir/psql -h $host -p $port -d $db -U $user < $mktmp/generate.data 1> $mktmp/loadmoredata.log 2> $mktmp/loadmoredata.log
status "done"
+ sleep 20 # Give it a little while for replication to catch up
}

0 comments on commit 4005590

Please sign in to comment.