Commit 4dfd3f8
* Fix expiration tests
Setting a +1 second expiration is very unreliable.
A +1 second expiration doesn't mean the value will expire
"in a second", but "next second". If we're already at
950ms within our second, then by the time "set" and the
follow-up "get" go out, we may already be within the
next second. As a result, the item will already have been
expired and we would no longer be able to find the value.
Better to be safe and set +2 seconds (which will give us
anywhere between 1 and 2 seconds)
Meanwhile also reduced the amount of sleeps: we could
manage with only 1 per function.
* Mark tests that sleep with `@medium`
* Trigger travis
Co-authored-by: Matthias Mullie <git@mullie.eu>
Co-authored-by: Tobias Nyholm <tobias.nyholm@gmail.com>
1 parent 31c8418 commit 4dfd3f8
2 files changed
Lines changed: 24 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
485 | 488 | | |
486 | 489 | | |
487 | 490 | | |
| |||
848 | 851 | | |
849 | 852 | | |
850 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
851 | 857 | | |
852 | 858 | | |
853 | 859 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
174 | | - | |
| 177 | + | |
175 | 178 | | |
176 | 179 | | |
177 | | - | |
178 | | - | |
179 | 180 | | |
180 | | - | |
| 181 | + | |
181 | 182 | | |
182 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
| |||
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
262 | 269 | | |
263 | 270 | | |
264 | 271 | | |
265 | 272 | | |
266 | 273 | | |
267 | 274 | | |
268 | | - | |
| 275 | + | |
269 | 276 | | |
270 | 277 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | 278 | | |
275 | | - | |
| 279 | + | |
276 | 280 | | |
277 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
278 | 285 | | |
279 | 286 | | |
280 | 287 | | |
| |||
0 commit comments