-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch: remove forloop var pass by reference
Sucessful `testVerifyEnviromentRegistrars` with patch: ``` === RUN TestNewEnvironment === RUN TestNewEnvironment/Verify_Multi_Registrar_Environment --- PASS: TestNewEnvironment/Verify_Multi_Registrar_Environment (0.00s) --- PASS: TestNewEnvironment (0.00s) PASS ok github.com/xmidt-org/webpa-common/v2/service/consul 0.019s ``` Failure `testVerifyEnviromentRegistrars` with forloop bug: ``` === RUN TestNewEnvironment/Verify_Multi_Registrar_Environment /Users/odc/Documents/GitHub/xmidt-org/webpa-common/service/consul/environment_test.go:209: Error Trace: /Users/odc/Documents/GitHub/xmidt-org/webpa-common/service/consul/environment_test.go:209 Error: Should be true Test: TestNewEnvironment/Verify_Multi_Registrar_Environment Messages: expected port 8080 register /Users/odc/Documents/GitHub/xmidt-org/webpa-common/service/consul/environment_test.go:213: Error Trace: /Users/odc/Documents/GitHub/xmidt-org/webpa-common/service/consul/environment_test.go:213 Error: Should be true Test: TestNewEnvironment/Verify_Multi_Registrar_Environment Messages: expected port 8080 unregister ```
- Loading branch information
Showing
4 changed files
with
93 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters