Skip to content

Commit d238c53

Browse files
committed
fix UTs
1 parent 2e1fe1b commit d238c53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cns/restserver/homeazmonitor_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ func TestHomeAzMonitor(t *testing.T) {
6767
return []string{GetHomeAzAPIName}, nil
6868
},
6969
GetHomeAzF: func(_ context.Context) (nmagent.AzResponse, error) {
70-
return nmagent.AzResponse{HomeAz: uint(1), AppliedFixes: []nmagent.HomeAZFix{nmagent.HomeAZFixIPv6}}, nil
70+
return nmagent.AzResponse{HomeAz: uint(1), AppliedFixes: []nmagent.HomeAZFix{nmagent.HomeAZFixInvalid}}, nil
7171
},
7272
},
73-
cns.HomeAzResponse{IsSupported: true},
74-
true,
73+
cns.HomeAzResponse{IsSupported: true, HomeAz: uint(1), NmaAppliedTheIPV6Fix: false},
74+
false,
7575
},
7676
{
7777
"api supported but got unexpected errors",

0 commit comments

Comments
 (0)