Skip to content

Commit f829e43

Browse files
fix: fix failing test
1 parent 3d0ba54 commit f829e43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cns/nodesubnet/nodesubnet_nc_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
"github.com/Azure/azure-container-networking/cns"
7+
"github.com/Azure/azure-container-networking/cns/logger"
78
"github.com/Azure/azure-container-networking/cns/nodesubnet"
89
"github.com/Azure/azure-container-networking/crd/nodenetworkconfig/api/v1alpha"
910
"github.com/google/go-cmp/cmp"
@@ -47,3 +48,7 @@ func TestCreateNodeSubnetNCRequest_NonEmptySecondaryIPs(t *testing.T) {
4748
t.Errorf("Unexepected diff in NodeSubnetNCRequest: %v", cmp.Diff(request, expectedRequest))
4849
}
4950
}
51+
52+
func init() {
53+
logger.InitLogger("testlogs", 0, 0, "./")
54+
}

0 commit comments

Comments
 (0)