diff --git a/bracket/double_elimination.go b/bracket/double_elimination.go index d7a992a3..d4fe1591 100644 --- a/bracket/double_elimination.go +++ b/bracket/double_elimination.go @@ -90,8 +90,8 @@ var doubleEliminationBracketMatchupTemplates = []matchupTemplate{ matchupKey: newMatchupKey(4, 1), displayName: "11", NumWinsToAdvance: 1, - redAllianceSource: newWinnerAllianceSource(3, 1), - blueAllianceSource: newWinnerAllianceSource(3, 2), + redAllianceSource: newWinnerAllianceSource(3, 2), + blueAllianceSource: newWinnerAllianceSource(3, 1), }, { matchupKey: newMatchupKey(4, 2), diff --git a/bracket/double_elimination_test.go b/bracket/double_elimination_test.go index 20d37e80..d9ca4df3 100644 --- a/bracket/double_elimination_test.go +++ b/bracket/double_elimination_test.go @@ -122,11 +122,11 @@ func TestDoubleEliminationProgression(t *testing.T) { matches, err = database.GetMatchesByType("elimination") assert.Nil(t, err) if assert.Equal(t, 12, len(matches)) { - assertMatch(t, matches[10], "11", 8, 7) + assertMatch(t, matches[10], "11", 7, 8) assertMatch(t, matches[11], "12", 4, 3) } - scoreMatch(database, "11", game.BlueWonMatch) + scoreMatch(database, "11", game.RedWonMatch) assert.Nil(t, bracket.Update(database, &dummyStartTime)) matches, err = database.GetMatchesByType("elimination") assert.Nil(t, err)