fix another bug in scenario testing

This commit is contained in:
Sonja Happ 2019-09-11 12:46:43 +02:00
parent 8b8f674266
commit b17de1c576

View file

@ -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)
}