Skip to content

Commit

Permalink
Fix race in test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelattwood committed Jan 22, 2024
1 parent 190c46d commit 40212e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/natsreloader/natsreloadertest/natsreloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ func TestFileFinder(t *testing.T) {

time.Sleep(time.Second)

cancel()

expectedWatchedFiles := []string{
"/testConfig_0.conf",
"/testConfig_1.conf",
Expand All @@ -264,8 +266,6 @@ func TestFileFinder(t *testing.T) {
}

}

cancel()
}

func writeFile(content, path string) error {
Expand Down

0 comments on commit 40212e8

Please sign in to comment.