From dd9d9d5b5f01241cef0696be3cb131631ffc7009 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 26 Oct 2026 20:20:12 +0100 Subject: [PATCH] Compare haves with SameHave in the round-trip tests, now that a have carries a list (issue 1126) --- go/delivery/delivery_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/delivery/delivery_test.go b/go/delivery/delivery_test.go index 8c7fc19..0ddd2a3 100644 --- a/go/delivery/delivery_test.go +++ b/go/delivery/delivery_test.go @@ -153,7 +153,7 @@ func TestRoundTrip(t *testing.T) { t.Fatal(err) } in.V = Version - if out != in { + if !SameHave(out, in) { t.Fatalf("got %+v want %+v", out, in) } }) @@ -487,7 +487,7 @@ func testHaveRemoved(t *testing.T) { // 1370/AC3 t.Fatal(err) } in.V = Version - if out != in || out.Phase != "removed" { + if !SameHave(out, in) || out.Phase != "removed" { t.Errorf("round trip: %+v", out) } }