Skip to content

Commit 2e841ae

Browse files
committed
test(api): fix test
1 parent 3e96631 commit 2e841ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/api_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package api
22

33
import (
4+
"github.com/semaphoreui/semaphore/util"
45
//_ "github.com/snikch/goodman/hooks"
56
//_ "github.com/snikch/goodman/transaction"
67
"net/http"
@@ -9,6 +10,10 @@ import (
910
)
1011

1112
func TestApiPing(t *testing.T) {
13+
util.Config = &util.ConfigType{
14+
Debugging: &util.DebuggingConfig{},
15+
}
16+
1217
req, _ := http.NewRequest("GET", "/api/ping", nil)
1318
rr := httptest.NewRecorder()
1419

0 commit comments

Comments
 (0)