Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xujianhai666 committed Jul 24, 2019
1 parent ce76fa9 commit 720f4c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cluster/cluster_impl/failback_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
7 changes: 4 additions & 3 deletions protocol/mock_invoker.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 720f4c2

Please sign in to comment.