mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
fix(multiplayer): converge events through REST
This commit is contained in:
@@ -23,7 +23,10 @@ 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})
|
||||
response := toQueueResponse(domain.QueueTicket{TicketID: "ticket-1234567890", PlayerID: "player-1234567890", ProposalID: "proposal-1234567890", MatchID: "match-1234567890", State: domain.AssignmentReady})
|
||||
if response.ProposalID != "proposal-1234567890" {
|
||||
t.Fatalf("queue response proposal ID = %q", response.ProposalID)
|
||||
}
|
||||
if response.MatchID != "match-1234567890" {
|
||||
t.Fatalf("queue response match ID = %q", response.MatchID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user