mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
fix another bug in scenario testing
This commit is contained in:
parent
8b8f674266
commit
b17de1c576
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ func TestAddUserToScenario(t *testing.T) {
|
||||||
|
|
||||||
// try to add a non-existing user to newScenario, should return a not found 404
|
// try to add a non-existing user to newScenario, should return a not found 404
|
||||||
code, resp, err = helper.TestEndpoint(router, token,
|
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.NoError(t, err)
|
||||||
assert.Equalf(t, 404, code, "Response body: \n%v\n", resp)
|
assert.Equalf(t, 404, code, "Response body: \n%v\n", resp)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue