mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 00:14:00 +00:00
fix(multiplayer): publish stalled allocation recovery
This commit is contained in:
@@ -14,11 +14,17 @@ func TestExpireStalledAllocationsSQLFencesAndRequeuesWithoutPenalty(t *testing.T
|
||||
"SET state = 'FAILED'",
|
||||
"SET participation_active = FALSE",
|
||||
"SET state = 'QUEUED'",
|
||||
"INSERT INTO outbox",
|
||||
"'state_changed'",
|
||||
"'stalled-allocation:'",
|
||||
} {
|
||||
if !strings.Contains(ExpireStalledAllocationsSQL, fragment) {
|
||||
t.Fatalf("ExpireStalledAllocationsSQL missing fragment %q:\n%s", fragment, ExpireStalledAllocationsSQL)
|
||||
}
|
||||
}
|
||||
if !strings.Contains(ExpireStalledAllocationsSQL, "occurred_at', $4") {
|
||||
t.Fatalf("stalled allocation event timestamp is not bound")
|
||||
}
|
||||
}
|
||||
|
||||
func TestExpireStalledAllocationsRejectsInvalidArgumentsWithoutDatabase(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user