Skip to content

Commit 6459f97

Browse files
small fixes
1 parent 430655c commit 6459f97

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cns/restserver/internalapi.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ func (service *HTTPRestService) CreateOrUpdateNetworkContainerInternal(req *cns.
620620
} else {
621621
logger.Errorf(returnMessage)
622622
}
623+
623624
if service.Options[common.OptProgramSNATIPTables] == true {
624625
returnCode, returnMessage = service.programSNATRules(req)
625626
if returnCode != 0 {

cns/restserver/ipam_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2383,7 +2383,7 @@ func TestIPAMRequestIPConfigsProgrammingPendingFailure(t *testing.T) {
23832383
req.OrchestratorContext = b
23842384

23852385
_, err = requestIPConfigsHelper(svc, req)
2386-
assert.Error(t, err)
2386+
require.Error(t, err)
23872387
assert.Contains(t, err.Error(), "not enough IPs available")
23882388

23892389
// Verify no IPs were assigned

0 commit comments

Comments
 (0)