Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 97980ce

Browse files
committed
fix broken test
Signed-off-by: Sean Teeling <[email protected]>
1 parent 0e8c653 commit 97980ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/osm-healthcheck/osm-healthcheck_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ func TestGetHealthcheckHander(t *testing.T) {
5858
//#nosec G307
5959
defer listener.Close()
6060

61+
// required to avoid https://github.com/golang/go/wiki/CommonMistakes#using-goroutines-on-loop-iterator-variables
62+
test := test
6163
go func() {
6264
conn, err := listener.Accept()
6365
assert.Nil(err)

0 commit comments

Comments
 (0)