Repository navigation
Commit 842014f
committed
test: wait for the issued token in the auth store tests
On Windows, the auth-guard and cli-auth store tests read an auth.json
with no token. The store holds an empty auth.json from startup and
devframe writes the token a moment later. On POSIX the wait for mode
0600 also waited for that write, since the file is only chmodded once
the token lands, but on Windows the mode is not checked, so the wait
ended as soon as the empty file existed. Wait for the token itself,
then check the mode where the platform has one.1 parent 3995823 commit 842014f
2 files changed
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
389 | 397 | | |
390 | | - | |
391 | 398 | | |
392 | 399 | | |
393 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
132 | 139 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 140 | | |
137 | 141 | | |
0 commit comments