mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-15 02:52:12 +00:00
fix(multiplayer): recover assignment handoff
This commit is contained in:
@@ -22,6 +22,13 @@ import (
|
||||
|
||||
type queueBackendSpy struct{ createCalls, heartbeatCalls, cancelCalls, getCalls int }
|
||||
|
||||
func TestQueueResponseCarriesRecoveredMatchIdentity(t *testing.T) {
|
||||
response := toQueueResponse(domain.QueueTicket{TicketID: "ticket-1234567890", PlayerID: "player-1234567890", MatchID: "match-1234567890", State: domain.AssignmentReady})
|
||||
if response.MatchID != "match-1234567890" {
|
||||
t.Fatalf("queue response match ID = %q", response.MatchID)
|
||||
}
|
||||
}
|
||||
|
||||
type candidateIndexSpy struct {
|
||||
upsertCalls, removeCalls int
|
||||
upsertErr, removeErr error
|
||||
|
||||
Reference in New Issue
Block a user