aboutsummaryrefslogtreecommitdiff
path: root/ancestor/integration_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ancestor/integration_test.go')
-rw-r--r--ancestor/integration_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ancestor/integration_test.go b/ancestor/integration_test.go
index d13c86ed..fa630f57 100644
--- a/ancestor/integration_test.go
+++ b/ancestor/integration_test.go
@@ -112,8 +112,8 @@ func TestIsMissingObject(t *testing.T) {
t.Fatal("expected error")
}
- var missing *giterrors.ObjectMissingError
- if !errors.As(err, &missing) {
+ missing, ok := errors.AsType[*giterrors.ObjectMissingError](err)
+ if !ok {
t.Fatalf("expected ObjectMissingError, got %T (%v)", err, err)
}