mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: use constants for http methods
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -47,7 +47,7 @@ func TestSecretRemove(t *testing.T) {
|
||||
if !strings.HasPrefix(req.URL.Path, expectedURL) {
|
||||
return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL)
|
||||
}
|
||||
if req.Method != "DELETE" {
|
||||
if req.Method != http.MethodDelete {
|
||||
return nil, fmt.Errorf("expected DELETE method, got %s", req.Method)
|
||||
}
|
||||
return &http.Response{
|
||||
|
||||
Reference in New Issue
Block a user