- Notifications
You must be signed in to change notification settings - Fork1.1k
Commitf6556fc
authored
test(coderd/workspaceapps/apptest): fix lastusedat assertion for all test (#20827)
The test flake can be verified by setting `ReportInterval` to a reallylow value, like `100 * time.Millisecond`.We now set it to a really high value to avoid triggering flush without manually calling the function in test. This can easily happen because the default value is 30s and we run tests in parallel. The assertiontypically happens such that:[use workspace] -> [fetch previous last used] -> [flush]-> [fetch new last used]When this edge case is triggered:[use workspace] -> [report interval flush]-> [fetch previous last used] -> [flush] -> [fetch new last used]In this case, both the previous and new last used will be the same,breaking the test assertion.Fixescoder/internal#960Fixescoder/internal#9751 parent8e22cd7 commitf6556fc
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
198 | 214 | | |
199 | 215 | | |
200 | 216 | | |
| |||
0 commit comments
Comments
(0)