This commit is contained in:
David Robertson 2023-06-13 17:22:02 +01:00
parent b4efa94d6c
commit 82744f7199
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -1008,11 +1008,13 @@ func TestSame(t *testing.T) {
b Request b Request
expectSame bool expectSame bool
}{ }{
// Two zero structs are the Same.
{ {
a: Request{}, a: Request{},
b: Request{}, b: Request{},
expectSame: true, expectSame: true,
}, },
// Requests only differing in txn ID are the same.
{ {
a: Request{ a: Request{
TxnID: "txn1", TxnID: "txn1",
@ -1028,6 +1030,9 @@ func TestSame(t *testing.T) {
}, },
expectSame: true, 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{ a: Request{
TxnID: "txn1", TxnID: "txn1",