Skip to content

Commit

Permalink
Potential fix to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
satk0 committed Oct 19, 2024
1 parent 81df5f3 commit 335faa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/file_watcher/file_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestFileWatcher(t *testing.T) {
t.Fatalf("failed to create file watcher: %v", err)
}

ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(testTimeout))
defer cancel()

go func() {
Expand Down Expand Up @@ -56,7 +56,7 @@ func TestFileWatcher(t *testing.T) {
t.Fatalf("failed to create file watcher: %v", err)
}

ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(testTimeout))
defer cancel()

go func() {
Expand Down Expand Up @@ -87,7 +87,7 @@ func TestFileWatcher(t *testing.T) {
t.Fatalf("failed to create file watcher: %v", err)
}

ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(testTimeout))
defer cancel()

go func() {
Expand Down

0 comments on commit 335faa1

Please sign in to comment.