Skip to content

Commit

Permalink
Disable parallel tests for adwatch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
denisonbarbosa committed Dec 17, 2024
1 parent cc5d0e4 commit ebdd733
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions internal/watcher/watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import (
)

func TestWatchDirectory(t *testing.T) {
t.Parallel()

tests := map[string]struct {
filesToUpdate []string
filesToRename []string
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand All @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit ebdd733

Please sign in to comment.