From 82744f719979f4e3b45fa84a9cf5c715a57d1366 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Tue, 13 Jun 2023 17:22:02 +0100 Subject: [PATCH] Comments --- sync3/request_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sync3/request_test.go b/sync3/request_test.go index 2dfa2c3..af0ac09 100644 --- a/sync3/request_test.go +++ b/sync3/request_test.go @@ -1008,11 +1008,13 @@ func TestSame(t *testing.T) { b Request expectSame bool }{ + // Two zero structs are the Same. { a: Request{}, b: Request{}, expectSame: true, }, + // Requests only differing in txn ID are the same. { a: Request{ TxnID: "txn1", @@ -1028,6 +1030,9 @@ func TestSame(t *testing.T) { }, expectSame: true, }, + // Requests only differing in some other field ConnID are NOT the same. + // TODO: would be better to change a more important field like lists rather than + // ConnID. { a: Request{ TxnID: "txn1",