mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Replace uses of deprecated IsErr...Notfound()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a8e7aca3fd
commit
919726b5db
8 changed files with 9 additions and 9 deletions
|
@ -42,7 +42,7 @@ func TestConfigInspectConfigNotFound(t *testing.T) {
|
|||
}
|
||||
|
||||
_, _, err := client.ConfigInspectWithRaw(context.Background(), "unknown")
|
||||
if err == nil || !IsErrConfigNotFound(err) {
|
||||
if err == nil || !IsErrNotFound(err) {
|
||||
t.Fatalf("expected a configNotFoundError error, got %v", err)
|
||||
}
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ func TestConfigInspect(t *testing.T) {
|
|||
version: "1.30",
|
||||
client: newMockClient(func(req *http.Request) (*http.Response, error) {
|
||||
if !strings.HasPrefix(req.URL.Path, expectedURL) {
|
||||
return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL)
|
||||
return nil, fmt.Errorf("expected URL '%s', got '%s'", expectedURL, req.URL)
|
||||
}
|
||||
content, err := json.Marshal(swarm.Config{
|
||||
ID: "config_id",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue