mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Comments
This commit is contained in:
parent
b4efa94d6c
commit
82744f7199
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user