Avoid http client race in test case.
[arvados.git] / services / keepstore / handler_test.go
index 4d042a70dd376ea1e04bdff16283ab80669dfd0f..f012ea3902217c55502d7aebe12b072d004985ec 100644 (file)
@@ -1107,7 +1107,7 @@ func TestUntrashHandler(t *testing.T) {
        response = IssueRequest(datamanagerWrongMethodReq)
        ExpectStatusCode(t,
                "Only PUT method is supported for untrash",
-               http.StatusBadRequest,
+               http.StatusMethodNotAllowed,
                response)
 
        // datamanagerReq => StatusOK