From d7a9754362722cc5aa45250cfbfff0a87b0c0cd5 Mon Sep 17 00:00:00 2001 From: Manuel Kieweg <manuel.kieweg@h-da.de> Date: Thu, 1 Apr 2021 13:13:24 +0200 Subject: [PATCH] nevermind the /api --- nucleus/controller_test.go | 6 +++--- nucleus/initialise_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nucleus/controller_test.go b/nucleus/controller_test.go index b04349038..47fa1026c 100644 --- a/nucleus/controller_test.go +++ b/nucleus/controller_test.go @@ -47,7 +47,7 @@ func TestRun(t *testing.T) { return } if !reflect.DeepEqual(got.StatusCode, tests[0].want) { - t.Errorf("Run() got: %v, want %v", got.StatusCode, tests[0].want) + t.Errorf("livez got: %v, want %v", got.StatusCode, tests[0].want) } got, err = http.Get(tests[0].args.request) if err != nil { @@ -55,7 +55,7 @@ func TestRun(t *testing.T) { return } if !reflect.DeepEqual(got.StatusCode, tests[1].want) { - t.Errorf("Run() got: %v, want %v", got.StatusCode, tests[1].want) + t.Errorf("readyz got: %v, want %v", got.StatusCode, tests[1].want) } got, err = http.Get(tests[0].args.request) if err != nil { @@ -63,7 +63,7 @@ func TestRun(t *testing.T) { return } if !reflect.DeepEqual(got.StatusCode, tests[2].want) { - t.Errorf("Run() got: %v, want %v", got.StatusCode, tests[2].want) + t.Errorf("api init got: %v, want %v", got.StatusCode, tests[2].want) } }) diff --git a/nucleus/initialise_test.go b/nucleus/initialise_test.go index f688257fa..6c90b054e 100644 --- a/nucleus/initialise_test.go +++ b/nucleus/initialise_test.go @@ -15,7 +15,7 @@ import ( "testing" ) -const apiEndpoint = "http://localhost:8080/api" +const apiEndpoint = "http://localhost:8080" // UUIDs for test cases var did uuid.UUID -- GitLab