0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-03-11 02:17:43 -05:00

test: add wait for trivy db download in test case

This commit is contained in:
Shivam Mishra 2020-10-02 16:47:54 -07:00
parent ea0ef61a65
commit 8075eadc1a

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)