Skip to content

Commit 491ebfa

Browse files
committed
some improve logs for the flaky test
1 parent 82ac066 commit 491ebfa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/topic/topicwriterinternal/writer_reconnector_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ func TestWriterImpl_Reconnect(t *testing.T) {
482482

483483
strm.EXPECT().Recv().Do(func() {
484484
xtest.WaitChannelClosed(t, streamClosed)
485+
t.Logf("channel closed: %v", name)
485486
}).Return(nil, errors.New("test stream closed")).MaxTimes(1)
486487

487488
return strm
@@ -542,7 +543,9 @@ func TestWriterImpl_Reconnect(t *testing.T) {
542543
err := w.Write(ctx, newTestMessages(1))
543544
require.NoError(t, err)
544545

546+
t.Log("Waiting to connection loop stopped...")
545547
xtest.WaitChannelClosedWithTimeout(t, connectionLoopStopped, 4*time.Second)
548+
t.Log("Connection loop stopped")
546549
})
547550
}
548551

0 commit comments

Comments
 (0)