Skip to content

Commit

Permalink
Merge pull request #14401 from ahrtr/ctx_error_20220830
Browse files Browse the repository at this point in the history
[test] Fix test code compiling error due to not enough arguments
  • Loading branch information
serathius authored Aug 30, 2022
2 parents 77773c7 + e1c5d2a commit cdd2b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/ctl_v3_auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/no_quorum_ready_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package e2e

import (
"context"
"testing"

"go.etcd.io/etcd/tests/v3/framework/e2e"
Expand All @@ -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)
}

Expand Down

0 comments on commit cdd2b73

Please sign in to comment.