mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
fix a typo
This commit is contained in:
parent
b880a911f3
commit
8882f6069c
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ func TestUpdateSimulationModel(t *testing.T) {
|
||||||
|
|
||||||
// try to update a simulation model that does not exist (should return not found 404 status code)
|
// try to update a simulation model that does not exist (should return not found 404 status code)
|
||||||
code, resp, err = common.NewTestEndpoint(router, token,
|
code, resp, err = common.NewTestEndpoint(router, token,
|
||||||
fmt.Sprintf("/api/models/%v", newSimulationModelID+1), "PUT", common.KeyModels{"scenario": updatedSimulationModel})
|
fmt.Sprintf("/api/models/%v", newSimulationModelID+1), "PUT", common.KeyModels{"model": updatedSimulationModel})
|
||||||
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