Skip to content

Commit

Permalink
Ignore tparallel where it doesnt make sense
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
  • Loading branch information
kradalby committed Dec 1, 2022
1 parent eb072a1 commit 6f4c6c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/general_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ func TestPingAllByHostname(t *testing.T) {
}
}

// If subtests are parallel, then they will start before setup is run.
// This might mean we approach setup slightly wrong, but for now, ignore
// the linter
// nolint:tparallel
func TestTaildrop(t *testing.T) {
IntegrationSkip(t)
t.Parallel()
Expand Down
12 changes: 12 additions & 0 deletions integration/scenario_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ func IntegrationSkip(t *testing.T) {
}
}

// If subtests are parallel, then they will start before setup is run.
// This might mean we approach setup slightly wrong, but for now, ignore
// the linter
// nolint:tparallel
func TestHeadscale(t *testing.T) {
IntegrationSkip(t)
t.Parallel()
Expand Down Expand Up @@ -70,6 +74,10 @@ func TestHeadscale(t *testing.T) {
}
}

// If subtests are parallel, then they will start before setup is run.
// This might mean we approach setup slightly wrong, but for now, ignore
// the linter
// nolint:tparallel
func TestCreateTailscale(t *testing.T) {
IntegrationSkip(t)
t.Parallel()
Expand Down Expand Up @@ -104,6 +112,10 @@ func TestCreateTailscale(t *testing.T) {
}
}

// If subtests are parallel, then they will start before setup is run.
// This might mean we approach setup slightly wrong, but for now, ignore
// the linter
// nolint:tparallel
func TestTailscaleNodesJoiningHeadcale(t *testing.T) {
IntegrationSkip(t)
t.Parallel()
Expand Down

0 comments on commit 6f4c6c1

Please sign in to comment.