mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
fix a bug in scenario testing: try to remove user that does not exist
This commit is contained in:
parent
387c922059
commit
f42c962a97
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ func TestRemoveUserFromScenario(t *testing.T) {
|
|||
// Try to remove a user that does not exist in DB
|
||||
// This should fail with not found 404 status code
|
||||
code, resp, err = helper.TestEndpoint(router, token,
|
||||
fmt.Sprintf("/api/scenarios/%v/user?username=User_C", newScenarioID), "DELETE", nil)
|
||||
fmt.Sprintf("/api/scenarios/%v/user?username=User_D", newScenarioID), "DELETE", nil)
|
||||
assert.NoError(t, err)
|
||||
assert.Equalf(t, 404, code, "Response body: \n%v\n", resp)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue