8000 Sleep after killing server in replication test · percona/postgres@8cc554f · GitHub
[go: up one dir, main page]

Skip to content

Commit 8cc554f

Browse files
committed
Sleep after killing server in replication test
This test often failed in CI, and I believe the cause is that we tried to start the cluster again before it had been fully killed.
1 parent 2d944d5 commit 8cc554f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/pg_tde/t/012_replication.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
PGTDE::psql($primary, 'postgres',
7676
"ALTER SYSTEM SET pg_tde.wal_encrypt = 'on';");
7777
$primary->kill9;
78+
# Sleep to ensure we don't try to start the server again before it's been properly killed.
79+
sleep(1);
7880

7981
PGTDE::append_to_result_file("-- primary start");
8082
$primary->start;

0 commit comments

Comments
 (0)
0