Browse Source

remove test artifact after test

flashmob 5 years ago
parent
commit
7670f696f9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      api_test.go

+ 3 - 0
api_test.go

@@ -613,6 +613,9 @@ func TestPubSubAPI(t *testing.T) {
 	if err := os.Truncate("tests/testlog", 0); err != nil {
 		t.Error(err)
 	}
+	if err := os.Truncate("tests/pidfilex.pid", 0); err != nil {
+		t.Error(err)
+	}
 
 	d := Daemon{Config: &AppConfig{LogFile: "tests/testlog"}}
 	if err := d.Start(); err != nil {