test: update wait for statement for postgres (#11309)
This commit is contained in:
parent
f4d3aa25e1
commit
b312ccf1ec
|
|
@ -21,7 +21,9 @@ func launchTestContainer(t *testing.T) *testutil.Container {
|
||||||
"POSTGRES_HOST_AUTH_METHOD": "trust",
|
"POSTGRES_HOST_AUTH_METHOD": "trust",
|
||||||
},
|
},
|
||||||
WaitingFor: wait.ForAll(
|
WaitingFor: wait.ForAll(
|
||||||
wait.ForLog("database system is ready to accept connections"),
|
// the database comes up twice, once right away, then again a second
|
||||||
|
// time after the docker entrypoint starts configuraiton
|
||||||
|
wait.ForLog("database system is ready to accept connections").WithOccurrence(2),
|
||||||
wait.ForListeningPort(nat.Port(servicePort)),
|
wait.ForListeningPort(nat.Port(servicePort)),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue