Skip to content

Commit 961001c

Browse files
authored
added service test
1 parent 9b91d18 commit 961001c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

nomad/service_test.go

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ package nomad_test
33
import (
44
"os"
55
"testing"
6-
)
76

7+
"github.com/HiWay-Media/hwm-go-utils/log"
8+
"github.com/HiWay-Media/hwm-go-utils/nomad"
9+
)
810

911
func TestMain(m *testing.M) {
1012
if os.Getenv("APP_ENV") == "" {
@@ -15,4 +17,13 @@ func TestMain(m *testing.M) {
1517
}
1618
//env.Load()
1719
m.Run()
18-
}
20+
}
21+
22+
func getNomad() nomad.IService {
23+
options := nomad.Options{
24+
BaseUrl: "url",
25+
LogLevel: "debug",
26+
Logger: log.GetLogger("debug"),
27+
}
28+
return nomad.NewService(options)
29+
}

0 commit comments

Comments
 (0)