From 4692ca7b7fe6d6ec9154ba8cf551154cdaad7c5a Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Sun, 24 Mar 2024 14:36:14 -0400 Subject: [PATCH] REvert parallel tests --- cmd/access_test.go | 2 -- cmd/config_loader_test.go | 1 - cmd/publish_test.go | 3 --- 3 files changed, 6 deletions(-) diff --git a/cmd/access_test.go b/cmd/access_test.go index 47aa9dae..81c9f2b9 100644 --- a/cmd/access_test.go +++ b/cmd/access_test.go @@ -10,7 +10,6 @@ import ( ) func TestCLI_Access_Show(t *testing.T) { - t.Parallel() s, conf, port := newTestServerWithAuth(t) defer test.StopServer(t, s, port) @@ -20,7 +19,6 @@ func TestCLI_Access_Show(t *testing.T) { } func TestCLI_Access_Grant_And_Publish(t *testing.T) { - t.Parallel() s, conf, port := newTestServerWithAuth(t) defer test.StopServer(t, s, port) diff --git a/cmd/config_loader_test.go b/cmd/config_loader_test.go index 67a4bcbe..7a7f2bf1 100644 --- a/cmd/config_loader_test.go +++ b/cmd/config_loader_test.go @@ -8,7 +8,6 @@ import ( ) func TestNewYamlSourceFromFile(t *testing.T) { - t.Parallel() filename := filepath.Join(t.TempDir(), "server.yml") contents := ` # Normal options diff --git a/cmd/publish_test.go b/cmd/publish_test.go index e03ae1dc..31d01cb5 100644 --- a/cmd/publish_test.go +++ b/cmd/publish_test.go @@ -17,7 +17,6 @@ import ( ) func TestCLI_Publish_Subscribe_Poll_Real_Server(t *testing.T) { - t.Parallel() testMessage := util.RandomString(10) app, _, _, _ := newTestApp() require.Nil(t, app.Run([]string{"ntfy", "publish", "ntfytest", "ntfy unit test " + testMessage})) @@ -36,7 +35,6 @@ func TestCLI_Publish_Subscribe_Poll_Real_Server(t *testing.T) { } func TestCLI_Publish_Subscribe_Poll(t *testing.T) { - t.Parallel() s, port := test.StartServer(t) defer test.StopServer(t, s, port) topic := fmt.Sprintf("http://127.0.0.1:%d/mytopic", port) @@ -53,7 +51,6 @@ func TestCLI_Publish_Subscribe_Poll(t *testing.T) { } func TestCLI_Publish_All_The_Things(t *testing.T) { - t.Parallel() s, port := test.StartServer(t) defer test.StopServer(t, s, port) topic := fmt.Sprintf("http://127.0.0.1:%d/mytopic", port)