Skip to content

Commit

Permalink
Make a few comments a bit clearer
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Davis <dug@microsoft.com>
  • Loading branch information
duglin committed Oct 29, 2023
1 parent 5f8d04b commit ecead5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions test/integration/mqtt_paho/mqtt_test.go
Expand Up @@ -38,8 +38,9 @@ func TestSendEvent(t *testing.T) {
eventChan := make(chan receiveEvent)
defer close(eventChan)

// Used to try to make sure the receiver is ready before we start to
// send events
// 'wait' is used to ensure that we at least wait until the Receiver
// thread starts. We'll then use a 'sleep' (hoping) that waits until
// the Receiver itself is ready
wait := make(chan bool)

go func() {
Expand Down
5 changes: 3 additions & 2 deletions v2/protocol/test/test.go
Expand Up @@ -25,8 +25,9 @@ func SendReceive(t *testing.T, ctx context.Context, in binding.Message, s protoc
wg := sync.WaitGroup{}
wg.Add(2)

// Used to try to make sure the receiver is ready before we start to
// send events
// 'wait' is used to ensure that we at least wait until the Receiver
// thread starts. We'll then use a 'sleep' (hoping) that waits until
// the Receiver itself is ready
wait := make(chan bool)

go func() {
Expand Down

0 comments on commit ecead5c

Please sign in to comment.