Skip to content

Commit

Permalink
fix UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZetaoZhuang committed Dec 19, 2024
1 parent 2e1fe1b commit d238c53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cns/restserver/homeazmonitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ func TestHomeAzMonitor(t *testing.T) {
return []string{GetHomeAzAPIName}, nil
},
GetHomeAzF: func(_ context.Context) (nmagent.AzResponse, error) {
return nmagent.AzResponse{HomeAz: uint(1), AppliedFixes: []nmagent.HomeAZFix{nmagent.HomeAZFixIPv6}}, nil
return nmagent.AzResponse{HomeAz: uint(1), AppliedFixes: []nmagent.HomeAZFix{nmagent.HomeAZFixInvalid}}, nil
},
},
cns.HomeAzResponse{IsSupported: true},
true,
cns.HomeAzResponse{IsSupported: true, HomeAz: uint(1), NmaAppliedTheIPV6Fix: false},
false,
},
{
"api supported but got unexpected errors",
Expand Down

0 comments on commit d238c53

Please sign in to comment.