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
|
||||
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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user