Parcourir la source

REvert parallel tests

binwiederhier il y a 1 an
Parent
commit
4692ca7b7f
3 fichiers modifiés avec 0 ajouts et 6 suppressions
  1. 0 2
      cmd/access_test.go
  2. 0 1
      cmd/config_loader_test.go
  3. 0 3
      cmd/publish_test.go

+ 0 - 2
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)
 

+ 0 - 1
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

+ 0 - 3
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)