Skip to content

Commit

Permalink
Chore: trim comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yunginnanet committed Oct 8, 2023
1 parent 6b60dc0 commit 93fdc71
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions servercfg/serverconf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func TestGetPublicIP(t *testing.T) {
t.Logf("WARNING: could not set NETMAKER_TEST_IP_SERVICE env var")
}

// 1. Test that the function checks the environment variable PUBLIC_IP_SERVICE first.
t.Run("Use PUBLIC_IP_SERVICE if set", func(t *testing.T) {

// set the environment variable
Expand All @@ -45,7 +44,6 @@ func TestGetPublicIP(t *testing.T) {
})

t.Run("Use config.Config.Server.PublicIPService if PUBLIC_IP_SERVICE isn't set", func(t *testing.T) {
// Mock the config
config.Config.Server.PublicIPService = server.URL
defer func() { config.Config.Server.PublicIPService = "" }()

Expand Down Expand Up @@ -98,5 +96,3 @@ func TestGetPublicIP(t *testing.T) {
})

}

// Note: The rest of the GetPublicIP function would remain unchanged in this file.

0 comments on commit 93fdc71

Please sign in to comment.