Merge pull request #143 from shimish2/testchanges

test: add wait for trivy db download in test case
This commit is contained in:
Ramkumar Chinchani
2020-10-08 13:38:51 -07:00
committed by GitHub
+3
View File
@@ -500,6 +500,9 @@ func TestCVESearch(t *testing.T) {
time.Sleep(100 * time.Millisecond)
}
// Wait for trivy db to download
time.Sleep(30 * time.Second)
defer func() {
ctx := context.Background()
_ = c.Server.Shutdown(ctx)