Commit 377b8eb
committed
test(talk): fetch rooms once before checking modifiedSince
Talk captures the timestamp it returns in X-Nextcloud-Talk-Modified-Before at
the start of getRooms, and only then dispatches BeforeRoomsFetchEvent, whose
listeners create the "Note to self", sample and changelog conversations for a
user seeing Talk for the first time. Those rooms end up with a lastActivity
newer than the timestamp already reported, so the test's window of "nothing was
modified since T + 2 seconds" only held while that creation finished within two
seconds. On a loaded CI runner it does not, and the returned sample rooms fail
the assertion, which is what made the matrix jobs flaky.
Fetch the rooms once before the timed sequence, so the lazy creation happens
outside the window that is checked.
Signed-off-by: Oleksandr Piskun <oleksandr2088@icloud.com>1 parent f9141af commit 377b8eb
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
| 110 | + | |
| 111 | + | |
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
| |||
0 commit comments