Skip to content

Commit

Permalink
Show GameServer name in TestGameServerReserve flakiness fail (#1292)
Browse files Browse the repository at this point in the history
Extra debugging, so we can dig into what is going wrong in this test.

Work on #1276
  • Loading branch information
markmandel authored and roberthbailey committed Jan 24, 2020
1 parent ceebef5 commit 6fecfa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/gameserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ func TestGameServerReserve(t *testing.T) {
assert.Equal(t, "ACK: RESERVE\n", reply)

gs, err = framework.WaitForGameServerState(readyGs, agonesv1.GameServerStateReserved, time.Minute)
assert.NoError(t, err)
assert.Equal(t, agonesv1.GameServerStateReserved, gs.Status.State)
assert.NoError(t, err, fmt.Sprintf("GameServer Name: %s", readyGs.ObjectMeta.Name))
assert.Equal(t, agonesv1.GameServerStateReserved, gs.Status.State, fmt.Sprintf("GameServer Name: %s", readyGs.ObjectMeta.Name))

// it should go back after 10 seconds
gs, err = framework.WaitForGameServerState(readyGs, agonesv1.GameServerStateReady, 15*time.Second)
Expand Down

0 comments on commit 6fecfa9

Please sign in to comment.