refactor: Cleanup/simplify test cases (#1041)

Signed-off-by: Nicol Draghici <idraghic@cisco.com>
This commit is contained in:
Nicol
2022-12-15 23:22:18 +02:00
committed by GitHub
parent 9136479206
commit 05f75e041c
3 changed files with 311 additions and 494 deletions
+256 -491
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -46,9 +46,9 @@ func TestRoutes(t *testing.T) {
panic(err)
}
go startServer(ctlr)
defer stopServer(ctlr)
test.WaitTillServerReady(baseURL)
cm := test.NewControllerManager(ctlr)
cm.StartAndWait(port)
defer cm.StopServer()
rthdlr := api.NewRouteHandler(ctlr)