Update integration test

We now send Accepted not OK for creating functions.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (VMware) 2018-10-19 14:36:11 +01:00 committed by Alex Ellis
parent 62525f6570
commit 476b652c26

View File

@ -37,7 +37,7 @@ func TestCreate_ValidRequest(t *testing.T) {
t.Fail()
}
expectedErrorCode := http.StatusOK
expectedErrorCode := http.StatusAccepted
if code != expectedErrorCode {
t.Errorf("Got HTTP code: %d, want %d\n", code, expectedErrorCode)
return