Skip to content

Commit

Permalink
Fix tests (sometimes)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomika committed Oct 2, 2024
1 parent 9f9bd47 commit c7ebf5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions multicast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestMulticastSubBlock(t *testing.T) {
<-syncer

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

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

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

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

0 comments on commit c7ebf5f

Please sign in to comment.