Commit Detail
Commit c362ab2
kv/sqlite3: fix TestLeaseAcquisitionAndRenewal
`TestLeaseAcquisitionAndRenewal` consistently fails on Windows CI build:
```
=== RUN TestLeaseAcquisitionAndRenewal
logger.go:146: 2025-02-02T09:30:57.970Z INFO sqlite3/sqlite.go:61 SQLite via wazero {"compiler": true, "lock": true, "shm": true}
logger.go:146: 2025-02-02T09:30:57.970Z INFO sqlite3/sqlite.go:61 SQLite via wazero {"compiler": true, "lock": true, "shm": true}
lease_test.go:145:
Error Trace: D:/a/specter/specter/kv/sqlite3/lease_test.go:145
Error: "1738488659015910800" is not greater than "1738488659015910800"
Test: TestLeaseAcquisitionAndRenewal
--- FAIL: TestLeaseAcquisitionAndRenewal (0.05s)
```
Adding `time.Sleep` to ensure that the clock actually advances
should be sufficient to fix the flaky test.
Files changed
1 file changed~1 modified