Skip to content

Commit

Permalink
fix nats broker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Oct 1, 2020
1 parent c983505 commit 1fedbd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/natsbroker/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func BenchmarkNatsEnginePublish(b *testing.B) {
pub := &centrifuge.Publication{Data: rawData}
b.ResetTimer()
for i := 0; i < b.N; i++ {
err := broker.Publish("channel", pub, &centrifuge.ChannelOptions{HistorySize: 0, HistoryLifetime: 0})
_, err := broker.Publish("channel", pub, centrifuge.PublishOptions{})
if err != nil {
panic(err)
}
Expand All @@ -43,7 +43,7 @@ func BenchmarkNatsEnginePublishParallel(b *testing.B) {
b.ResetTimer()
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
err := broker.Publish("channel", pub, &centrifuge.ChannelOptions{HistorySize: 0, HistoryLifetime: 0})
_, err := broker.Publish("channel", pub, centrifuge.PublishOptions{})
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 1fedbd4

Please sign in to comment.