Skip to content

Commit b73cd34

Browse files
authored
test: fix flaky coverage in random path tests (#280)
1 parent c4a9da2 commit b73cd34

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/paths/random_paths_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,14 @@ func TestGetRandomizedPaths_no_race(t *testing.T) {
8787
t.Parallel()
8888

8989
rtp := paths.NewRandomizedTempPaths(t.TempDir())
90+
rtp.Add("foo", "/tmp/existing")
91+
9092
go func() {
9193
path, err := rtp.GetPath("https://localhost/test.txt")
9294
assert.NoError(t, err)
9395
assert.NotEmpty(t, path)
9496
}()
97+
9598
go func() {
9699
rtp.GetPaths()
97100
}()

0 commit comments

Comments
 (0)