diff --git a/service/service_test.go b/service/service_test.go index ff52dbd9..7f54c5dc 100644 --- a/service/service_test.go +++ b/service/service_test.go @@ -47,8 +47,8 @@ func TestWayback(t *testing.T) { } w := Wayback(ctx, opts, urls, do) - if w == nil { - t.Fatal("Unexpected wayback exceeded") + if w != nil { + t.Fatalf("Unexpected wayback exceeded: %v", w) } } @@ -82,7 +82,7 @@ func TestWaybackWithoutReduxer(t *testing.T) { } w := Wayback(ctx, opts, urls, do) - if w == nil { - t.Fatal("Unexpected wayback exceeded") + if w != nil { + t.Fatalf("Unexpected wayback exceeded: %v", w) } }