From e288ed1e37e3e9bfb9206e889b4259f10c979867 Mon Sep 17 00:00:00 2001 From: 9547 Date: Sat, 12 Jun 2021 23:19:12 +0800 Subject: [PATCH] cluster/executor: fix the unnecessary conversion (unconvert) --- pkg/cluster/executor/ssh_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/cluster/executor/ssh_test.go b/pkg/cluster/executor/ssh_test.go index 5701b2789e..ff8f38a3b3 100644 --- a/pkg/cluster/executor/ssh_test.go +++ b/pkg/cluster/executor/ssh_test.go @@ -36,7 +36,7 @@ func TestNativeSSHConfigArgs(t *testing.T) { }, { &SSHConfig{ - Timeout: time.Duration(60 * time.Second), + Timeout: 60 * time.Second, Port: 23, KeyFile: "id_rsa", }, @@ -45,7 +45,7 @@ func TestNativeSSHConfigArgs(t *testing.T) { }, { &SSHConfig{ - Timeout: time.Duration(60 * time.Second), + Timeout: 60 * time.Second, Port: 23, KeyFile: "id_rsa", }, @@ -54,7 +54,7 @@ func TestNativeSSHConfigArgs(t *testing.T) { }, { &SSHConfig{ - Timeout: time.Duration(60 * time.Second), + Timeout: 60 * time.Second, KeyFile: "id_rsa", Port: 23, Passphrase: "tidb", @@ -64,7 +64,7 @@ func TestNativeSSHConfigArgs(t *testing.T) { }, { &SSHConfig{ - Timeout: time.Duration(60 * time.Second), + Timeout: 60 * time.Second, KeyFile: "id_rsa", Port: 23, Passphrase: "tidb", @@ -74,7 +74,7 @@ func TestNativeSSHConfigArgs(t *testing.T) { }, { &SSHConfig{ - Timeout: time.Duration(60 * time.Second), + Timeout: 60 * time.Second, Password: "tidb", }, true,