Skip to content

Commit

Permalink
Output correct expected HTTP status on upload test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLeister committed Dec 23, 2020
1 parent bb147fc commit d2c2650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prosody-filer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestUploadValid(t *testing.T) {

// Check status code
if status := rr.Code; status != http.StatusCreated {
t.Errorf("handler returned wrong status code: got %v want %v. HTTP body: %s", status, http.StatusOK, rr.Body.String())
t.Errorf("handler returned wrong status code: got %v want %v. HTTP body: %s", status, http.StatusCreated, rr.Body.String())
}

// clean up
Expand Down

0 comments on commit d2c2650

Please sign in to comment.