From efbd3a280b6fcd74ebc8bef9052ec202a8794713 Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Wed, 28 Feb 2018 10:40:51 -0800 Subject: [PATCH] Fix typo introduced by refactor --- pkg/gameservers/controller.go | 2 +- pkg/gameservers/controller_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gameservers/controller.go b/pkg/gameservers/controller.go index 0c3d8f0dda..eba0f47b41 100644 --- a/pkg/gameservers/controller.go +++ b/pkg/gameservers/controller.go @@ -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 } diff --git a/pkg/gameservers/controller_test.go b/pkg/gameservers/controller_test.go index df2266fbf0..ec115851cd 100644 --- a/pkg/gameservers/controller_test.go +++ b/pkg/gameservers/controller_test.go @@ -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} {