1 parent c4a9da2 commit b73cd34Copy full SHA for b73cd34
1 file changed
pkg/paths/random_paths_test.go
@@ -87,11 +87,14 @@ func TestGetRandomizedPaths_no_race(t *testing.T) {
87
t.Parallel()
88
89
rtp := paths.NewRandomizedTempPaths(t.TempDir())
90
+ rtp.Add("foo", "/tmp/existing")
91
+
92
go func() {
93
path, err := rtp.GetPath("https://localhost/test.txt")
94
assert.NoError(t, err)
95
assert.NotEmpty(t, path)
96
}()
97
98
99
rtp.GetPaths()
100
0 commit comments