Skip to content

Commit

Permalink
Merge pull request #271 from TaoZou1/other_ut
Browse files Browse the repository at this point in the history
Fix UT error
  • Loading branch information
TaoZou1 committed Aug 10, 2023
2 parents c6adad6 + 3e1f537 commit b75e622
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/nsx/services/staticroute/staticroute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func (qIface *fakeQueryClient) List(queryParam string, cursorParam *string, incl
}

func createService(t *testing.T) (*StaticRouteService, *gomock.Controller, *mocks.MockStaticRoutesClient) {
config2 := nsx.NewConfig("localhost", "1", "1", "", 10, 3, 20, 20, true, true, true, ratelimiter.AIMD, nil, nil, []string{})
config2 := nsx.NewConfig("localhost", "1", "1", []string{}, 10, 3, 20, 20, true, true, true, ratelimiter.AIMD, nil, nil, []string{})

cluster, _ := nsx.NewCluster(config2)
rc, _ := cluster.NewRestConnector()

Expand Down
2 changes: 1 addition & 1 deletion pkg/nsx/services/subnet/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func Test_KeyFunc(t *testing.T) {
}

func Test_InitializeSubnetStore(t *testing.T) {
config2 := nsx.NewConfig("localhost", "1", "1", "", 10, 3, 20, 20, true, true, true, ratelimiter.AIMD, nil, nil, []string{})
config2 := nsx.NewConfig("localhost", "1", "1", []string{}, 10, 3, 20, 20, true, true, true, ratelimiter.AIMD, nil, nil, []string{})
cluster, _ := nsx.NewCluster(config2)
rc, _ := cluster.NewRestConnector()

Expand Down
2 changes: 1 addition & 1 deletion pkg/nsx/services/subnet/wrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

func fakeService() *SubnetService {
c := nsx.NewConfig("localhost", "1", "1", "", 10, 3, 20, 20, true, true, true, ratelimiter.AIMD, nil, nil, []string{})
c := nsx.NewConfig("localhost", "1", "1", []string{}, 10, 3, 20, 20, true, true, true, ratelimiter.AIMD, nil, nil, []string{})
cluster, _ := nsx.NewCluster(c)
rc, _ := cluster.NewRestConnector()
service := &SubnetService{
Expand Down

0 comments on commit b75e622

Please sign in to comment.