Skip to content

Commit

Permalink
fix test and string renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
s12chung committed Oct 15, 2023
1 parent e4eceeb commit b568b58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/storage/localstore/localstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestAPI_KeyFromSignGet(t *testing.T) {
require.Equal(expectedKey, key)
}

func TestAPI_ValidateAny(t *testing.T) {
func TestAPI_Validate(t *testing.T) {
require := require.New(t)
api := newAPIWithT(t)
ciphertext, err := newEncryptorT(t).Encrypt(testKey)
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/httptyped/httptyped.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (r *Registry) RegisterType(values ...any) {
for _, value := range values {
typ := indirectType(reflect.TypeOf(value))
if typ.Kind() != reflect.Struct {
panic(fmt.Sprintf("MustRegisterType() with non-Struct kind %v", typ.String()))
panic(fmt.Sprintf("httptyped.RegisterType() with non-Struct kind %v", typ.String()))
}
r.registeredTypes[typ] = true
}
Expand Down

0 comments on commit b568b58

Please sign in to comment.