test(outputs.sql): wait for db dump file to exist (#12149)
This commit is contained in:
parent
8221ece4ca
commit
0c0c2e169a
|
|
@ -225,7 +225,10 @@ func TestMysqlIntegration(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
require.Equal(t, 0, rc)
|
||||
dumpfile := filepath.Join(outDir, "dump")
|
||||
require.FileExists(t, dumpfile)
|
||||
require.Eventually(t, func() bool {
|
||||
_, err := os.Stat(dumpfile)
|
||||
return !os.IsNotExist(err)
|
||||
}, 5*time.Second, 10*time.Millisecond)
|
||||
|
||||
//compare the dump to what we expected
|
||||
expected, err := os.ReadFile("testdata/mariadb/expected.sql")
|
||||
|
|
|
|||
Loading…
Reference in New Issue