fix: make SQL queue recovery expire authoritatively

This commit is contained in:
Josh Creek
2026-08-31 22:14:30 +01:00
parent 068b66b234
commit b2d68d93cf
3 changed files with 14 additions and 4 deletions
+6
View File
@@ -38,3 +38,9 @@ func TestCreateQueueTicketRejectsInvalidArgumentsWithoutDatabase(t *testing.T) {
t.Fatal("invalid arguments accepted")
}
}
func TestQueueRecoveryRequiresAuthoritativeClock(t *testing.T) {
if _, err := GetQueueTicket(nil, nil, "player-1", "ticket-1", time.Time{}); err == nil {
t.Fatal("recovery without a clock was accepted")
}
}