Skip to content

Commit 006a3df

Browse files
committed
Add a delay between launching DTMD and Postgres in daemons.go script.
1 parent 1728185 commit 006a3df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/pg_dtm/tests/daemons.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"os"
1111
"strconv"
1212
"strings"
13+
"time"
1314
)
1415

1516
func read_to_channel(r io.Reader, c chan string, wg *sync.WaitGroup) {
@@ -192,6 +193,8 @@ func main() {
192193
go dtmd(bin["dtmd"], dir, dtmservers, i, &wg)
193194
}
194195

196+
time.Sleep(3 * time.Second)
197+
195198
for i, dir := range datadirs {
196199
wg.Add(1)
197200
go postgres(bin["postgres"], dir, dtmservers, PgPort + i, i, &wg)

0 commit comments

Comments
 (0)