Skip to content

Commit ecead5c

Browse files
author
Doug Davis
committed
Make a few comments a bit clearer
Signed-off-by: Doug Davis <dug@microsoft.com>
1 parent 5f8d04b commit ecead5c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

test/integration/mqtt_paho/mqtt_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ func TestSendEvent(t *testing.T) {
3838
eventChan := make(chan receiveEvent)
3939
defer close(eventChan)
4040

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

4546
go func() {

v2/protocol/test/test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ func SendReceive(t *testing.T, ctx context.Context, in binding.Message, s protoc
2525
wg := sync.WaitGroup{}
2626
wg.Add(2)
2727

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

3233
go func() {

0 commit comments

Comments
 (0)