Skip to content
Snippets Groups Projects
Commit 40323661 authored by Alex Young's avatar Alex Young Committed by Alex Ellis
Browse files

Remove duplication from createfunction_test.go


Signed-off-by: default avatarAlex Young <alex@heuris.io>
parent 031a0bc1
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,9 @@ func TestCreate_ValidRequest(t *testing.T) {
t.Fail()
}
if code != http.StatusOK {
t.Errorf("Got HTTP code: %d, want %d\n", code, http.StatusOK)
expectedErrorCode := http.StatusOK
if code != expectedErrorCode {
t.Errorf("Got HTTP code: %d, want %d\n", code, expectedErrorCode)
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment