@@ -76,12 +76,12 @@ func TestConnectionTopic_Push(t *testing.T) {
7676 }
7777
7878 // Use a timeout for client read
79- done := make (chan bool )
79+ done := make (chan struct {} )
8080 go func () {
8181 output , readErr := client .Read ()
8282 if readErr != nil {
8383 logger .Error ().Err (readErr ).Msg ("Client read failed" )
84- done <- true
84+ done <- struct {}{}
8585 return
8686 }
8787 if output .Topic != data .UpdateName {
@@ -94,7 +94,7 @@ func TestConnectionTopic_Push(t *testing.T) {
9494 if string (output .Payload ) != string (payloadBytes ) {
9595 t .Error ("Expected payload 'test', got" , string (output .Payload ))
9696 }
97- done <- true
97+ done <- struct {}{}
9898 }()
9999
100100 select {
@@ -171,12 +171,12 @@ func TestConnectionTopic_ClientMessage(t *testing.T) {
171171 })
172172
173173 // Use a timeout for client read
174- done := make (chan bool )
174+ done := make (chan struct {} )
175175 go func () {
176176 output , readErr := client .Read ()
177177 if readErr != nil {
178178 logger .Error ().Err (readErr ).Msg ("Client read failed" )
179- done <- true
179+ done <- struct {}{}
180180 return
181181 }
182182 if output .Topic != data .SubscribeName {
@@ -190,7 +190,7 @@ func TestConnectionTopic_ClientMessage(t *testing.T) {
190190 comparison , _ := json .Marshal (payloadInput )
191191 t .Errorf ("Expected payload %s , got %s" , string (comparison ), string (output .Payload ))
192192 }
193- done <- true
193+ done <- struct {}{}
194194 }()
195195
196196 select {
0 commit comments