Skip to content

Commit

Permalink
Show GameServer name in TestGameServerReserve flakiness fail
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 committed Jan 22, 2020
1 parent c6bba69 commit be1edc3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/e2e/gameserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,16 @@ 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, readyGs.ObjectMeta.Name)
assert.Equal(t, agonesv1.GameServerStateReserved, gs.Status.State, readyGs.ObjectMeta.Name)

// it should go back after 10 seconds
gs, err = framework.WaitForGameServerState(readyGs, agonesv1.GameServerStateReady, 15*time.Second)
assert.NoError(t, err)
assert.Equal(t, agonesv1.GameServerStateReady, gs.Status.State)

logrus.Info("SLEEPING")
time.Sleep(time.Minute)
}

func TestGameServerShutdown(t *testing.T) {
Expand Down

0 comments on commit be1edc3

Please sign in to comment.