Skip to content

Commit 548005d

Browse files
switched standard context for etcd cluster
Signed-off-by: rakibhossainctr <rakib.hossain.ctr@sumologic.com>
1 parent 620efcb commit 548005d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/apid/actions/cluster_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package actions
22

33
import (
4+
"context"
45
"errors"
56
"testing"
67

@@ -10,13 +11,12 @@ import (
1011
"github.com/stretchr/testify/assert"
1112
"github.com/stretchr/testify/mock"
1213
"go.etcd.io/etcd/client/v3"
13-
"golang.org/x/net/context"
1414
)
1515

1616
type mockCluster struct {
1717
}
1818

19-
func (mockCluster) MemberList(context.Context) (*clientv3.MemberListResponse, error) {
19+
func (mockCluster) MemberList(context.Context, ...clientv3.OpOption) (*clientv3.MemberListResponse, error) {
2020
return new(clientv3.MemberListResponse), nil
2121
}
2222

0 commit comments

Comments
 (0)