Skip to content

Commit

Permalink
Logs are fun
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Feb 15, 2024
1 parent 24fd8e2 commit 0296c1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/csapi/thread_notifications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,18 +346,22 @@ func TestThreadReceiptsInSync(t *testing.T) {
var lastErr error
if err := syncHasUnthreadedReadReceipt(roomID, alice.UserID, eventB)(clientUserID, topLevelSyncJSON); err == nil {
seenUnthreaded = true
t.Logf("seen unthreaded read receipt")
} else {
lastErr = err
}
if err := syncHasThreadedReadReceipt(roomID, alice.UserID, eventB, eventA)(clientUserID, topLevelSyncJSON); err == nil {
seenThreaded = true
t.Logf("seen threaded read receipt")
} else {
lastErr = err
}
if seenThreaded && seenUnthreaded {
t.Logf("seen both read receipts, returning")
return nil
}
return lastErr
},
)

}

0 comments on commit 0296c1c

Please sign in to comment.