test: update wait for statement for postgres (#11309)

This commit is contained in:
Joshua Powers 2022-06-16 13:47:19 -06:00 committed by GitHub
parent f4d3aa25e1
commit b312ccf1ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ func launchTestContainer(t *testing.T) *testutil.Container {
"POSTGRES_HOST_AUTH_METHOD": "trust",
},
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)),
),
}