aboutsummaryrefslogtreecommitdiff
path: root/reachability/integration_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'reachability/integration_test.go')
-rw-r--r--reachability/integration_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/reachability/integration_test.go b/reachability/integration_test.go
index 6b043d92..feda699b 100644
--- a/reachability/integration_test.go
+++ b/reachability/integration_test.go
@@ -187,8 +187,8 @@ func TestCheckConnectedMissingObject(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)
}