diff --git a/internal/watcher/watcher_test.go b/internal/watcher/watcher_test.go index 34b9cdc00..c48379eb4 100644 --- a/internal/watcher/watcher_test.go +++ b/internal/watcher/watcher_test.go @@ -18,8 +18,6 @@ import ( ) func TestWatchDirectory(t *testing.T) { - t.Parallel() - tests := map[string]struct { filesToUpdate []string filesToRename []string @@ -106,8 +104,6 @@ func TestWatchDirectory(t *testing.T) { } for name, tc := range tests { t.Run(name, func(t *testing.T) { - t.Parallel() - temp := t.TempDir() var dirs []string for _, dir := range tc.existingDirs { @@ -191,8 +187,6 @@ func TestWatchDirectory(t *testing.T) { } func TestRefreshGracePeriod(t *testing.T) { - t.Parallel() - dir := "withsubdir" temp := t.TempDir() dest := filepath.Join(temp, dir) @@ -239,8 +233,6 @@ func TestRefreshGracePeriod(t *testing.T) { } func TestUpdateDirs(t *testing.T) { - t.Parallel() - temp := t.TempDir() destKeep := filepath.Join(temp, "keep") destRemove := filepath.Join(temp, "remove") @@ -296,8 +288,6 @@ func TestUpdateDirs(t *testing.T) { } func TestUpdateDirsFailing(t *testing.T) { - t.Parallel() - // If UpdateDirs is failing, we are still watching the old directories. temp := t.TempDir() @@ -340,8 +330,6 @@ func TestUpdateDirsFailing(t *testing.T) { } func TestUpdateDirsWithEmptyDirSlice(t *testing.T) { - t.Parallel() - temp := t.TempDir() dirToWatch := filepath.Join(temp, "watchdir") testutils.Copy(t, filepath.Join("testdata", "withsubdir"), dirToWatch) @@ -361,8 +349,6 @@ func TestUpdateDirsWithEmptyDirSlice(t *testing.T) { } func TestUpdateDirsOnStoppedWatcher(t *testing.T) { - t.Parallel() - temp := t.TempDir() prevDir := filepath.Join(temp, "prevdir") curDir := filepath.Join(temp, "curdir") @@ -394,8 +380,6 @@ func TestUpdateDirsOnStoppedWatcher(t *testing.T) { } func TestStopWithoutStart(t *testing.T) { - t.Parallel() - temp := t.TempDir() w, err := watcher.New(context.Background(), []string{temp}) require.NoError(t, err, "Can't create watcher")