Skip to content

Commit 3f2fc43

Browse files
UPSTREAM: <carry> Use context from test for the kopia algorithms
Fixes linting error. Signed-off-by: oadp-team-rebase-bot <[email protected]>
1 parent 76bc5e7 commit 3f2fc43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/repository/udmrepo/kopialib/backend/common_kopia_algorithms_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package backend
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
"github.com/kopia/kopia/repo"
@@ -152,7 +151,7 @@ func TestSetupNewRepoAlgorithms(t *testing.T) {
152151
for key, value := range tc.envVars {
153152
t.Setenv(key, value)
154153
}
155-
ret := SetupNewRepositoryOptions(context.Background(), tc.flags)
154+
ret := SetupNewRepositoryOptions(t.Context(), tc.flags)
156155
assert.Equal(t, tc.expected, ret)
157156
})
158157
}

0 commit comments

Comments
 (0)