We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef9ce3e commit 0daa34eCopy full SHA for 0daa34e
pkg/downloader/oci_test.go
@@ -1,5 +1,5 @@
1
/*
2
-Copyright 2024 API Testing Authors.
+Copyright 2024-2025 API Testing Authors.
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@ limitations under the License.
17
package downloader
18
19
import (
20
+ "context"
21
"fmt"
22
"io"
23
"os"
@@ -58,7 +59,7 @@ func TestDetectAuthURL(t *testing.T) {
58
59
}
60
61
func TestDownload(t *testing.T) {
- server := mock.NewInMemoryServer(0)
62
+ server := mock.NewInMemoryServer(context.Background(), 0)
63
err := server.Start(mock.NewLocalFileReader("testdata/registry.yaml"), "/v2")
64
assert.NoError(t, err)
65
defer func() {
0 commit comments