From 9e1c3c1688d6007e7ed44fe1a61af066b0d48811 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()