mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 18:13:42 +00:00
fix: make SQL queue recovery expire authoritatively
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user