Skip to content

Commit

Permalink
fix UT linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Apr 16, 2024
1 parent e688535 commit 21b1df5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cns/restserver/v2/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ func startService(cnsPort, cnsURL string) error {
if err != nil {
return errors.Wrap(err, "Failed to initialize service")
}
service.Name = "cns-test-server"

service.SetOption(acncommon.OptCnsPort, cnsPort)
service.SetOption(acncommon.OptCnsURL, cnsURL)

if service != nil {
service.Name = "cns-test-server"

service.SetOption(acncommon.OptCnsPort, cnsPort)
service.SetOption(acncommon.OptCnsURL, cnsURL)

config.Server.PrimaryInterfaceIP = "localhost"

err = service.Init(&config)
Expand Down

0 comments on commit 21b1df5

Please sign in to comment.