mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 17:33:09 -06:00
Make test stricter
This commit is contained in:
parent
a970264690
commit
59aa8683f1
|
|
@ -42,18 +42,18 @@ func TestTypingCache(t *testing.T) {
|
|||
|
||||
func testAddTypingUser(t *testing.T, tCache *TypingCache) {
|
||||
timeAfterDefaultInterval := time.Now().Add(defaultInterval)
|
||||
timeAfterTwiceDefaultInterval := time.Now().Add(2 * defaultInterval)
|
||||
tests := []struct {
|
||||
userID string
|
||||
roomID string
|
||||
expire *time.Time
|
||||
}{
|
||||
}{ // Set four users typing state to room1
|
||||
{"user1", "room1", nil},
|
||||
{"user2", "room1", nil},
|
||||
{"user3", "room1", nil},
|
||||
{"user4", "room1", nil},
|
||||
// Override timeout
|
||||
{"user1", "room2", &timeAfterDefaultInterval},
|
||||
{"user1", "room2", &timeAfterTwiceDefaultInterval},
|
||||
{"user1", "room2", nil},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
|
|
|||
Loading…
Reference in a new issue