From 6f4c6c1876bff1176f2af2083030b9f2194fc37c Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 1 Dec 2022 14:01:06 +0100 Subject: [PATCH] Ignore tparallel where it doesnt make sense Signed-off-by: Kristoffer Dalby --- integration/general_test.go | 4 ++++ integration/scenario_test.go | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/integration/general_test.go b/integration/general_test.go index 27c62fff..737faaa1 100644 --- a/integration/general_test.go +++ b/integration/general_test.go @@ -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() diff --git a/integration/scenario_test.go b/integration/scenario_test.go index 363f8e37..480409ff 100644 --- a/integration/scenario_test.go +++ b/integration/scenario_test.go @@ -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() @@ -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() @@ -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()