1
0
Fork 0

Improve comments

master
Philip O'Toole 8 months ago
parent fa2034b42e
commit e4d2b4cddb

@ -231,7 +231,8 @@ func Test_DBLastModified(t *testing.T) {
t.Fatalf("last modified time changed for DB even though only WAL should have changed") t.Fatalf("last modified time changed for DB even though only WAL should have changed")
} }
// Checkpoint, check time is later. // Checkpoint, and check time is later. On some platforms the time resolution isn't that
// high, so we sleep so the test won't suffer a false failure.
time.Sleep(1 * time.Second) time.Sleep(1 * time.Second)
if err := db.Checkpoint(); err != nil { if err := db.Checkpoint(); err != nil {
t.Fatalf("failed to checkpoint database: %s", err.Error()) t.Fatalf("failed to checkpoint database: %s", err.Error())

Loading…
Cancel
Save