Skip to content

Commit 25e7ef1

Browse files
committed
fix lint
1 parent 0f11f3a commit 25e7ef1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cns/restserver/homeazmonitor_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ func TestHomeAzMonitor(t *testing.T) {
2424
{
2525
"happy path",
2626
&fakes.NMAgentClientFake{
27-
SupportedAPIsF: func(ctx context.Context) ([]string, error) {
27+
SupportedAPIsF: func(_ context.Context) ([]string, error) {
2828
return []string{"GetHomeAz"}, nil
2929
},
30-
GetHomeAzF: func(ctx context.Context) (nmagent.AzResponse, error) {
30+
GetHomeAzF: func(_ context.Context) (nmagent.AzResponse, error) {
3131
return nmagent.AzResponse{HomeAz: uint(1), APIVersion: uint(2)}, nil
3232
},
3333
},
@@ -37,10 +37,10 @@ func TestHomeAzMonitor(t *testing.T) {
3737
{
3838
"getHomeAz is not supported in nmagent",
3939
&fakes.NMAgentClientFake{
40-
SupportedAPIsF: func(ctx context.Context) ([]string, error) {
40+
SupportedAPIsF: func(_ context.Context) ([]string, error) {
4141
return []string{"dummy"}, nil
4242
},
43-
GetHomeAzF: func(ctx context.Context) (nmagent.AzResponse, error) {
43+
GetHomeAzF: func(_ context.Context) (nmagent.AzResponse, error) {
4444
return nmagent.AzResponse{}, nil
4545
},
4646
},
@@ -50,10 +50,10 @@ func TestHomeAzMonitor(t *testing.T) {
5050
{
5151
"api supported but home az value is not valid",
5252
&fakes.NMAgentClientFake{
53-
SupportedAPIsF: func(ctx context.Context) ([]string, error) {
53+
SupportedAPIsF: func(_ context.Context) ([]string, error) {
5454
return []string{GetHomeAzAPIName}, nil
5555
},
56-
GetHomeAzF: func(ctx context.Context) (nmagent.AzResponse, error) {
56+
GetHomeAzF: func(_ context.Context) (nmagent.AzResponse, error) {
5757
return nmagent.AzResponse{HomeAz: 0}, nil
5858
},
5959
},
@@ -63,10 +63,10 @@ func TestHomeAzMonitor(t *testing.T) {
6363
{
6464
"api supported but apiVersion value is not valid",
6565
&fakes.NMAgentClientFake{
66-
SupportedAPIsF: func(ctx context.Context) ([]string, error) {
66+
SupportedAPIsF: func(_ context.Context) ([]string, error) {
6767
return []string{GetHomeAzAPIName}, nil
6868
},
69-
GetHomeAzF: func(ctx context.Context) (nmagent.AzResponse, error) {
69+
GetHomeAzF: func(_ context.Context) (nmagent.AzResponse, error) {
7070
return nmagent.AzResponse{HomeAz: uint(1), APIVersion: uint(3)}, nil
7171
},
7272
},
@@ -76,10 +76,10 @@ func TestHomeAzMonitor(t *testing.T) {
7676
{
7777
"api supported but got unexpected errors",
7878
&fakes.NMAgentClientFake{
79-
SupportedAPIsF: func(ctx context.Context) ([]string, error) {
79+
SupportedAPIsF: func(_ context.Context) ([]string, error) {
8080
return []string{GetHomeAzAPIName}, nil
8181
},
82-
GetHomeAzF: func(ctx context.Context) (nmagent.AzResponse, error) {
82+
GetHomeAzF: func(_ context.Context) (nmagent.AzResponse, error) {
8383
return nmagent.AzResponse{}, errors.New("unexpected error")
8484
},
8585
},

0 commit comments

Comments
 (0)