Skip to content

Commit c7ebf5f

Browse files
committed
Fix tests (sometimes)
1 parent 9f9bd47 commit c7ebf5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

multicast_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestMulticastSubBlock(t *testing.T) {
6060
<-syncer
6161

6262
go func() {
63-
client := NewClient("1", bytes.NewBufferString(expected), ChannelDirectionInput, true, false)
63+
client := NewClient("2", &Buffer{b: *bytes.NewBufferString(expected)}, ChannelDirectionInput, true, false)
6464
orderActual += "pub-"
6565
fmt.Println(cast.Connect(client, []*Channel{channel}))
6666
wg.Done()
@@ -95,7 +95,7 @@ func TestMulticastPubBlock(t *testing.T) {
9595
channel := NewChannel(name)
9696

9797
go func() {
98-
client := NewClient("1", bytes.NewBufferString(expected), ChannelDirectionInput, true, false)
98+
client := NewClient("1", &Buffer{b: *bytes.NewBufferString(expected)}, ChannelDirectionInput, true, false)
9999
orderActual += "pub-"
100100
syncer <- 0
101101
fmt.Println(cast.Connect(client, []*Channel{channel}))
@@ -105,7 +105,7 @@ func TestMulticastPubBlock(t *testing.T) {
105105
<-syncer
106106

107107
go func() {
108-
client := NewClient("1", actual, ChannelDirectionOutput, true, false)
108+
client := NewClient("2", actual, ChannelDirectionOutput, true, false)
109109
orderActual += "sub-"
110110
wg.Done()
111111
fmt.Println(cast.Connect(client, []*Channel{channel}))
@@ -161,7 +161,7 @@ func TestMulticastMultSubs(t *testing.T) {
161161
<-syncer
162162

163163
go func() {
164-
client := NewClient("1", bytes.NewBufferString(expected), ChannelDirectionInput, true, false)
164+
client := NewClient("3", &Buffer{b: *bytes.NewBufferString(expected)}, ChannelDirectionInput, true, false)
165165
orderActual += "pub-"
166166
fmt.Println(cast.Connect(client, []*Channel{channel}))
167167
wg.Done()

0 commit comments

Comments
 (0)