diff --git a/server/handlers/default_test.go b/server/handlers/default_test.go index 402806d95d..031352749c 100644 --- a/server/handlers/default_test.go +++ b/server/handlers/default_test.go @@ -350,7 +350,7 @@ type failStore struct { 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") } diff --git a/tuf/store/httpstore_test.go b/tuf/store/httpstore_test.go index acf7b0623d..3b22c1fbd5 100644 --- a/tuf/store/httpstore_test.go +++ b/tuf/store/httpstore_test.go @@ -205,7 +205,7 @@ func Test400Error(t *testing.T) { // If it's a 400, translateStatusToError attempts to parse the body into // an error. If successful (and a recognized error) that error is returned. func TestTranslateErrorsParse400Errors(t *testing.T) { - origErr := validation.ErrBadRoot{"bad"} + origErr := validation.ErrBadRoot{Msg: "bad"} serialObj, err := validation.NewSerializableError(origErr) assert.NoError(t, err)