fix a typo

This commit is contained in:
Sonja Happ 2019-09-06 16:00:26 +02:00
parent b880a911f3
commit 8882f6069c

View file

@ -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)
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.Equalf(t, 404, code, "Response body: \n%v\n", resp)
}