diff --git a/registry_test.go b/registry_test.go index 8f5c780..be9869f 100644 --- a/registry_test.go +++ b/registry_test.go @@ -1,6 +1,7 @@ package registry import ( + "errors" "testing" ) @@ -24,7 +25,7 @@ func TestRegistry(t *testing.T) { t.Logf("(%d) Testing set %s=%q (lock: %t)", i, tc.Key, tc.Value, tc.Lock) err := r.Set(tc.Key, tc.Value) - if err != tc.Err { + if !errors.Is(err, tc.Err) { t.Errorf("Expected error %v, got %v", tc.Err, err) }