From 8149e9b800e4323808a19d90dd98e38415ffb89c Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Fri, 15 Jul 2016 16:05:36 +0200 Subject: [PATCH] agent: assign fake unit hash for each case in TestDefaultPublisher Now that nil UnitHash is not allowed, we need to set a fake unit hash string to each test case in TestDefaultPublisher to avoid test failures. --- agent/unit_state_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent/unit_state_test.go b/agent/unit_state_test.go index 33599dd5d..1183c9798 100644 --- a/agent/unit_state_test.go +++ b/agent/unit_state_test.go @@ -227,6 +227,7 @@ func TestDefaultPublisher(t *testing.T) { UnitName: "foo.service", ActiveState: "active", MachineID: "xyz", + UnitHash: "quickbrownfox", }, nil, []*unit.UnitState{ @@ -234,6 +235,7 @@ func TestDefaultPublisher(t *testing.T) { UnitName: "foo.service", ActiveState: "active", MachineID: "xyz", + UnitHash: "quickbrownfox", }, }, }, @@ -243,6 +245,7 @@ func TestDefaultPublisher(t *testing.T) { &unit.UnitState{ UnitName: "foo.service", ActiveState: "active", + UnitHash: "quickbrownfox", }, nil, []*unit.UnitState{}, @@ -255,6 +258,7 @@ func TestDefaultPublisher(t *testing.T) { unit.UnitState{ UnitName: "foo.service", ActiveState: "active", + UnitHash: "quickbrownfox", }, }, []*unit.UnitState{},