diff --git a/go/vt/topo/stats_conn_test.go b/go/vt/topo/stats_conn_test.go index bbc7ee311f8..31b7cb36072 100644 --- a/go/vt/topo/stats_conn_test.go +++ b/go/vt/topo/stats_conn_test.go @@ -209,7 +209,7 @@ func TestStatsConnTopoListDir(t *testing.T) { statsConn := NewStatsConn("global", conn, testStatsConnReadSem) ctx := context.Background() - semAcquiredChan := make(chan bool, 0 /* no buffer */) + semAcquiredChan := make(chan bool) go createTestReadSemaphoreContention(ctx, 100*time.Millisecond, semAcquiredChan) <-semAcquiredChan statsConn.ListDir(ctx, "", true) @@ -283,7 +283,7 @@ func TestStatsConnTopoGet(t *testing.T) { statsConn := NewStatsConn("global", conn, testStatsConnReadSem) ctx := context.Background() - semAcquiredChan := make(chan bool, 0 /* no buffer */) + semAcquiredChan := make(chan bool) go createTestReadSemaphoreContention(ctx, time.Millisecond*100, semAcquiredChan) <-semAcquiredChan statsConn.Get(ctx, "")