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

add sleep in controller test

parent 559e6283
Branches
Tags
1 merge request!90Develop
Pipeline #67819 passed
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"net/http" "net/http"
"reflect" "reflect"
"testing" "testing"
"time"
) )
func TestRun(t *testing.T) { func TestRun(t *testing.T) {
...@@ -38,6 +39,7 @@ func TestRun(t *testing.T) { ...@@ -38,6 +39,7 @@ func TestRun(t *testing.T) {
t.Errorf("Run() error = %v", err) t.Errorf("Run() error = %v", err)
} }
}() }()
time.Sleep(time.Second)
t.Run("Controller Start HTTP API", func(t *testing.T) { t.Run("Controller Start HTTP API", func(t *testing.T) {
got, err := http.Get(tests[0].args.request) got, err := http.Get(tests[0].args.request)
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment