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
parent b04b637d66
commit d3cd37a792
No known key found for this signature in database
GPG key ID: ACBD71263BF42D00

View file

@ -416,6 +416,9 @@ func loadAndRunTests(dockerClient *client.Client, volumeName, v string, branchTo
if err = runTests(csAPIURL, v); err != nil {
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
}