From 655967d0f6139b17adf57213d818f59e79f47aca Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 14 Oct 2015 13:46:01 -0700 Subject: [PATCH] Runs go fmt after latest changes. --- consul/state/graveyard_test.go | 2 +- consul/structs/structs_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/consul/state/graveyard_test.go b/consul/state/graveyard_test.go index ffe07332b3..e796ce8557 100644 --- a/consul/state/graveyard_test.go +++ b/consul/state/graveyard_test.go @@ -103,7 +103,7 @@ func TestGraveyard_Lifecycle(t *testing.T) { func TestGraveyard_GC_Trigger(t *testing.T) { // Set up a fast-expiring GC. - ttl, granularity := 100 * time.Millisecond, 20 * time.Millisecond + ttl, granularity := 100*time.Millisecond, 20*time.Millisecond gc, err := NewTombstoneGC(ttl, granularity) if err != nil { t.Fatalf("err: %s", err) diff --git a/consul/structs/structs_test.go b/consul/structs/structs_test.go index 85a9c0eb49..7dd2b37cba 100644 --- a/consul/structs/structs_test.go +++ b/consul/structs/structs_test.go @@ -63,7 +63,7 @@ func TestStructs_ServiceNode_Clone(t *testing.T) { ServiceTags: []string{"prod", "v1"}, ServiceAddress: "127.0.0.2", ServicePort: 8080, - RaftIndex: RaftIndex{ + RaftIndex: RaftIndex{ CreateIndex: 1, ModifyIndex: 2, }, @@ -83,11 +83,11 @@ func TestStructs_ServiceNode_Clone(t *testing.T) { func TestStructs_DirEntry_Clone(t *testing.T) { e := &DirEntry{ LockIndex: 5, - Key: "hello", - Flags: 23, - Value: []byte("this is a test"), - Session: "session1", - RaftIndex: RaftIndex{ + Key: "hello", + Flags: 23, + Value: []byte("this is a test"), + Session: "session1", + RaftIndex: RaftIndex{ CreateIndex: 1, ModifyIndex: 2, },