Compare haves with SameHave in the round-trip tests, now that a have carries a list (issue 1126)
mesh/delivery closed: a newer head of the same pull request
mesh/check checking dd9d9d5b5f01 on dae8e288d2e1 | novox/mesh-sdk#98 in group feat/1126-nodes-compose

This commit is contained in:
2026-10-26 20:20:12 +01:00
parent 2c0ab3a592
commit dd9d9d5b5f
+2 -2
View File
@@ -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)
}
}