implement some ad-hoc mocks for responses
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -3,7 +3,7 @@ package plugin
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"strings"
|
||||
"net/http"
|
||||
|
||||
"github.com/moby/moby/api/types/system"
|
||||
"github.com/moby/moby/client"
|
||||
@ -79,5 +79,5 @@ func (c *fakeClient) PluginUpgrade(_ context.Context, name string, options clien
|
||||
return c.pluginUpgradeFunc(name, options)
|
||||
}
|
||||
// FIXME(thaJeztah): how to mock this?
|
||||
return io.NopCloser(strings.NewReader("")), nil
|
||||
return http.NoBody, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user