Skip to content
Snippets Groups Projects
Commit ae08d0fa authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

merge

parent 9bf121bd
No related branches found
No related tags found
2 merge requests!123Refactor container deployment,!90Develop
...@@ -47,6 +47,7 @@ func initialize() error { ...@@ -47,6 +47,7 @@ func initialize() error {
} }
// TODO: Start grpc listener here // TODO: Start grpc listener here
return httpAPI() return httpAPI()
} }
......
...@@ -36,10 +36,6 @@ func testSetupHTTP() { ...@@ -36,10 +36,6 @@ func testSetupHTTP() {
if err := c.pndc.add(pnd); err != nil { if err := c.pndc.add(pnd); err != nil {
log.Fatal(err) log.Fatal(err)
} }
if err := httpAPI(); err != nil {
log.Fatal(err)
return
}
} }
func Test_httpApi(t *testing.T) { func Test_httpApi(t *testing.T) {
...@@ -141,6 +137,10 @@ func Test_httpApi(t *testing.T) { ...@@ -141,6 +137,10 @@ func Test_httpApi(t *testing.T) {
wantErr: false, wantErr: false,
}, },
} }
if err := httpAPI(); err != nil {
t.Errorf("httpApi() error = %v", err)
return
}
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
got, err := http.Get(tt.request) got, err := http.Get(tt.request)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment