Skip to content

Commit 0daa34e

Browse files
committed
fix the unit testing
1 parent ef9ce3e commit 0daa34e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/downloader/oci_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2024 API Testing Authors.
2+
Copyright 2024-2025 API Testing Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@ limitations under the License.
1717
package downloader
1818

1919
import (
20+
"context"
2021
"fmt"
2122
"io"
2223
"os"
@@ -58,7 +59,7 @@ func TestDetectAuthURL(t *testing.T) {
5859
}
5960

6061
func TestDownload(t *testing.T) {
61-
server := mock.NewInMemoryServer(0)
62+
server := mock.NewInMemoryServer(context.Background(), 0)
6263
err := server.Start(mock.NewLocalFileReader("testdata/registry.yaml"), "/v2")
6364
assert.NoError(t, err)
6465
defer func() {

0 commit comments

Comments
 (0)