mirror of https://github.com/docker/docs.git
commit
25f22a2dc8
|
@ -350,7 +350,7 @@ type failStore struct {
|
||||||
storage.MemStorage
|
storage.MemStorage
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s failStore) GetCurrent(_, _ string) ([]byte, error) {
|
func (s *failStore) GetCurrent(_, _ string) ([]byte, error) {
|
||||||
return nil, fmt.Errorf("oh no! storage has failed")
|
return nil, fmt.Errorf("oh no! storage has failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ func Test400Error(t *testing.T) {
|
||||||
// If it's a 400, translateStatusToError attempts to parse the body into
|
// If it's a 400, translateStatusToError attempts to parse the body into
|
||||||
// an error. If successful (and a recognized error) that error is returned.
|
// an error. If successful (and a recognized error) that error is returned.
|
||||||
func TestTranslateErrorsParse400Errors(t *testing.T) {
|
func TestTranslateErrorsParse400Errors(t *testing.T) {
|
||||||
origErr := validation.ErrBadRoot{"bad"}
|
origErr := validation.ErrBadRoot{Msg: "bad"}
|
||||||
|
|
||||||
serialObj, err := validation.NewSerializableError(origErr)
|
serialObj, err := validation.NewSerializableError(origErr)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
Loading…
Reference in New Issue