From b17de1c5769883fc3017034cec9b324b24e854d6 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Wed, 11 Sep 2019 12:46:43 +0200 Subject: [PATCH] fix another bug in scenario testing --- routes/scenario/scenario_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/scenario/scenario_test.go b/routes/scenario/scenario_test.go index 9aa8356..816ff4e 100644 --- a/routes/scenario/scenario_test.go +++ b/routes/scenario/scenario_test.go @@ -370,7 +370,7 @@ func TestAddUserToScenario(t *testing.T) { // try to add a non-existing user to newScenario, should return a not found 404 code, resp, err = helper.TestEndpoint(router, token, - fmt.Sprintf("/api/scenarios/%v/user?username=User_C", newScenarioID), "PUT", nil) + fmt.Sprintf("/api/scenarios/%v/user?username=User_D", newScenarioID), "PUT", nil) assert.NoError(t, err) assert.Equalf(t, 404, code, "Response body: \n%v\n", resp) }