From ab88d73c86b25ade7679905487f1b45ef403acc1 Mon Sep 17 00:00:00 2001
From: Manuel Kieweg <manuel.kieweg@h-da.de>
Date: Tue, 30 Mar 2021 16:33:08 +0100
Subject: [PATCH] add sleep in controller test

---
 nucleus/controller_test.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nucleus/controller_test.go b/nucleus/controller_test.go
index 0e5fc9596..b04349038 100644
--- a/nucleus/controller_test.go
+++ b/nucleus/controller_test.go
@@ -5,6 +5,7 @@ import (
 	"net/http"
 	"reflect"
 	"testing"
+	"time"
 )
 
 func TestRun(t *testing.T) {
@@ -38,6 +39,7 @@ func TestRun(t *testing.T) {
 			t.Errorf("Run() error = %v", err)
 		}
 	}()
+	time.Sleep(time.Second)
 	t.Run("Controller Start HTTP API", func(t *testing.T) {
 		got, err := http.Get(tests[0].args.request)
 		if err != nil {
-- 
GitLab