From e1c5d2a9ac4dd46b4b7b077a8152dfc0f9571b3f Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Tue, 30 Aug 2022 13:06:10 +0800 Subject: [PATCH] fix test code compiling error due to not enough arguments in call to node0.Restart Signed-off-by: Benjamin Wang --- tests/e2e/ctl_v3_auth_test.go | 2 +- tests/e2e/no_quorum_ready_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/e2e/ctl_v3_auth_test.go b/tests/e2e/ctl_v3_auth_test.go index 55ab93652e6..de1c9f8d915 100644 --- a/tests/e2e/ctl_v3_auth_test.go +++ b/tests/e2e/ctl_v3_auth_test.go @@ -1401,7 +1401,7 @@ func authTestCacheReload(cx ctlCtx) { // restart the node node0.WithStopSignal(syscall.SIGINT) - if err := node0.Restart(); err != nil { + if err := node0.Restart(context.TODO()); err != nil { cx.t.Fatal(err) } diff --git a/tests/e2e/no_quorum_ready_test.go b/tests/e2e/no_quorum_ready_test.go index 126a040b0a3..c60b9d7e25b 100644 --- a/tests/e2e/no_quorum_ready_test.go +++ b/tests/e2e/no_quorum_ready_test.go @@ -15,6 +15,7 @@ package e2e import ( + "context" "testing" "go.etcd.io/etcd/tests/v3/framework/e2e" @@ -31,7 +32,7 @@ func TestInitDaemonNotifyWithoutQuorum(t *testing.T) { epc.Procs = epc.Procs[:1] // Start the etcd cluster with only one member - if err := epc.Start(); err != nil { + if err := epc.Start(context.TODO()); err != nil { t.Fatalf("Failed to start the etcd cluster: %v", err) }