feat: status api
This commit is contained in:
@@ -29,7 +29,7 @@ func TestRouter(t *testing.T) {
|
||||
req, _ := http.NewRequest("PUT", "/api/v1/command", cmdBody(exampleCommand))
|
||||
r.ServeHTTP(w, req)
|
||||
|
||||
assert.Equal(t, 200, w.Code, w.Body)
|
||||
assert.Equal(t, http.StatusOK, w.Code, w.Body)
|
||||
|
||||
// error: notblank validator
|
||||
exampleCommand.Race = ""
|
||||
|
||||
Reference in New Issue
Block a user