Skip to content

Commit

Permalink
Fix typo introduced by refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
markmandel committed Feb 28, 2018
1 parent 36035bf commit efbd3a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/gameservers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func (c *Controller) syncGameServerRequestReadyState(gs *stablev1alpha1.GameServ
return gs, errors.Wrapf(err, "error setting Ready, Port and address on GameServer %s Status", gs.ObjectMeta.Name)
}

c.recorder.Event(gs, corev1.EventTypeNormal, string(gs.Status.State), "address and Port populated")
c.recorder.Event(gs, corev1.EventTypeNormal, string(gs.Status.State), "Address and Port populated")
return gs, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/gameservers/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func TestControllerSyncGameServerRequestReadyState(t *testing.T) {
assert.Equal(t, gs.Spec.HostPort, gs.Status.Port)
assert.Equal(t, ipFixture, gs.Status.Address)
assert.Equal(t, node.ObjectMeta.Name, gs.Status.NodeName)
assert.Contains(t, <-mocks.fakeRecorder.Events, "address and Port populated")
assert.Contains(t, <-mocks.fakeRecorder.Events, "Address and Port populated")
})

for _, s := range []v1alpha1.State{"Unknown", v1alpha1.Unhealthy} {
Expand Down

0 comments on commit efbd3a2

Please sign in to comment.