Skip to content

Commit 6d63da0

Browse files
fix: fix UT
1 parent 5dccb40 commit 6d63da0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cni/network/invoker_cns_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ func TestCNSIPAMInvoker_Add_Overlay(t *testing.T) {
485485
}
486486
if tt.fields.ipamMode != "" {
487487
invoker.ipamMode = tt.fields.ipamMode
488+
tt.args.nwCfg.IPAM.Mode = string(tt.fields.ipamMode)
488489
}
489490
ipamAddResult, err := invoker.Add(IPAMAddConfig{nwCfg: tt.args.nwCfg, args: tt.args.args, options: tt.args.options})
490491
if tt.wantErr {

0 commit comments

Comments
 (0)