- Notifications
You must be signed in to change notification settings - Fork1k
Commit02fc173
authored
fix: fix flake due to two time.Now() calls (#19450)
fixescoder/internal#559This test is looking to see that after calling `coder schedule extend<workspace> 10h`, the scheduled stop time of the workspace is updatedappropriately (or at least that the information printed to the terminalindicates that).By using two `time.Now()` calls for the current time and the expectedtime, there was the possibility that the second call just barely crossedover the hour mark. This is shown in the error message when the testwould flake: `wanted "2025-04-07T22:"; got " 2025-04-07T23:00:00+05:30\r\n"` (the 00:00 letting us know we just barely crossed the hour).Using the same time object to construct the expected time should fix theissue.1 parent9ad124d commit02fc173
1 file changed
+1
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
353 | 353 |
| |
354 | 354 |
| |
355 | 355 |
| |
356 |
| - | |
| 356 | + | |
357 | 357 |
| |
358 | 358 |
| |
359 | 359 |
| |
|
0 commit comments
Comments
(0)