Skip to content

Commit

Permalink
contrib/Shopify/sarama: fix CI because of breaking change
Browse files Browse the repository at this point in the history
Upstream repository broke semver in IBM/sarama#1318
  • Loading branch information
gbbr committed Apr 10, 2019
1 parent 8c8aefe commit 61ec7b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/Shopify/sarama/sarama_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestSyncProducer(t *testing.T) {

metadataResponse := new(sarama.MetadataResponse)
metadataResponse.AddBroker(leader.Addr(), leader.BrokerID())
metadataResponse.AddTopicPartition("my_topic", 0, leader.BrokerID(), nil, nil, sarama.ErrNoError)
metadataResponse.AddTopicPartition("my_topic", 0, leader.BrokerID(), nil, nil, nil, sarama.ErrNoError)
seedBroker.Returns(metadataResponse)

prodSuccess := new(sarama.ProduceResponse)
Expand Down Expand Up @@ -146,7 +146,7 @@ func TestSyncProducerSendMessages(t *testing.T) {

metadataResponse := new(sarama.MetadataResponse)
metadataResponse.AddBroker(leader.Addr(), leader.BrokerID())
metadataResponse.AddTopicPartition("my_topic", 0, leader.BrokerID(), nil, nil, sarama.ErrNoError)
metadataResponse.AddTopicPartition("my_topic", 0, leader.BrokerID(), nil, nil, nil, sarama.ErrNoError)
seedBroker.Returns(metadataResponse)

prodSuccess := new(sarama.ProduceResponse)
Expand Down Expand Up @@ -262,7 +262,7 @@ func newMockBroker(t *testing.T) *sarama.MockBroker {

metadataResponse := new(sarama.MetadataResponse)
metadataResponse.AddBroker(broker.Addr(), broker.BrokerID())
metadataResponse.AddTopicPartition("my_topic", 0, broker.BrokerID(), nil, nil, sarama.ErrNoError)
metadataResponse.AddTopicPartition("my_topic", 0, broker.BrokerID(), nil, nil, nil, sarama.ErrNoError)
broker.Returns(metadataResponse)

prodSuccess := new(sarama.ProduceResponse)
Expand Down

0 comments on commit 61ec7b8

Please sign in to comment.