mirror of
https://github.com/docker/cli.git
synced 2026-10-09 07:26:46 -04:00
Merge pull request #20977 from allencloud/fix-delete-response-status-code
return status code http.StatusNoContent in deleting network when OK Upstream-commit: a04e16ac35e8dd9ec10462cccebf13cf29b49a51 Component: engine
This commit is contained in:
@@ -332,6 +332,6 @@ func deleteNetwork(c *check.C, id string, shouldSucceed bool) {
|
||||
c.Assert(status, checker.Not(checker.Equals), http.StatusOK)
|
||||
return
|
||||
}
|
||||
c.Assert(status, checker.Equals, http.StatusOK)
|
||||
c.Assert(status, checker.Equals, http.StatusNoContent)
|
||||
c.Assert(err, checker.IsNil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user