Add a delay before finishing the loadAndRunTests and destroying the dendrite docker container

Signed-off-by: Brian Meek <brian@hntlabs.com>
This commit is contained in:
Brian Meek 2022-09-02 15:05:15 -07:00 committed by Tak Wai Wong
parent 1f0fce6235
commit 1bb8273d28
No known key found for this signature in database
GPG key ID: 222E4AF2AA1F467D

View file

@ -416,6 +416,9 @@ func loadAndRunTests(dockerClient *client.Client, volumeName, v string, branchTo
if err = runTests(csAPIURL, v); err != nil { if err = runTests(csAPIURL, v); err != nil {
return fmt.Errorf("failed to run tests on version %s: %s", v, err) return fmt.Errorf("failed to run tests on version %s: %s", v, err)
} }
// Sleep to let the database sync before returning and destorying the dendrite container
time.Sleep(5 * time.Second)
return nil return nil
} }