mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
Merge pull request #143 from shimish2/testchanges
test: add wait for trivy db download in test case
This commit is contained in:
commit
0dcff98c1f
1 changed files with 3 additions and 0 deletions
|
@ -500,6 +500,9 @@ func TestCVESearch(t *testing.T) {
|
||||||
time.Sleep(100 * time.Millisecond)
|
time.Sleep(100 * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait for trivy db to download
|
||||||
|
time.Sleep(30 * time.Second)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
_ = c.Server.Shutdown(ctx)
|
_ = c.Server.Shutdown(ctx)
|
||||||
|
|
Loading…
Reference in a new issue