From 720f4c2c914d4b7949dad6c5ed2d3c906c8991e8 Mon Sep 17 00:00:00 2001 From: xujianhai666 Date: Wed, 24 Jul 2019 22:44:39 +0800 Subject: [PATCH] fmt --- cluster/cluster_impl/failback_cluster_test.go | 4 ++-- protocol/mock_invoker.go | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cluster/cluster_impl/failback_cluster_test.go b/cluster/cluster_impl/failback_cluster_test.go index d482dc77fa..2cc3ea122f 100644 --- a/cluster/cluster_impl/failback_cluster_test.go +++ b/cluster/cluster_impl/failback_cluster_test.go @@ -141,12 +141,12 @@ func Test_FailbackRetryFailed(t *testing.T) { assert.Nil(t, result.Result()) assert.Equal(t, 0, len(result.Attachments())) - time.Sleep(2 * time.Second) // for retry work. + time.Sleep(2 * time.Second) // for retry work. invoker.EXPECT().Destroy().Return() clusterInvoker.Destroy() - time.Sleep( 1 * time.Second) // for retryTimerTask thrown back to queue + time.Sleep(1 * time.Second) // for retryTimerTask thrown back to queue assert.Equal(t, 1, clusterInvoker.taskList.data.Len()) } diff --git a/protocol/mock_invoker.go b/protocol/mock_invoker.go index e31ec6cf48..768f3b40b9 100644 --- a/protocol/mock_invoker.go +++ b/protocol/mock_invoker.go @@ -5,9 +5,10 @@ package protocol import ( - common "github.com/apache/dubbo-go/common" - gomock "github.com/golang/mock/gomock" - reflect "reflect" + "reflect" + + "github.com/apache/dubbo-go/common" + "github.com/golang/mock/gomock" ) // MockInvoker is a mock of Invoker interface