Skip to content

Commit

Permalink
fix breaking compilation in events test
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Oct 19, 2020
1 parent b105a05 commit e7451ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/events/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func main() {
srv.Init()

go func() { // test 1, ordinary sub with autoack
evChan, err := events.Subscribe("test1")
evChan, err := events.Consume("test1")
if err != nil {
logger.Fatalf("Error creating subscriber: %v", err)
}
Expand Down Expand Up @@ -71,7 +71,7 @@ func main() {
}()

go func() { // test 2, sub with manual ack
evChan, err := events.Subscribe("test2", goevents.WithAutoAck(false, 5*time.Second))
evChan, err := events.Consume("test2", goevents.WithAutoAck(false, 5*time.Second))
if err != nil {
logger.Errorf("TEST2: Error creating subscriber: %v", err)
return
Expand Down

0 comments on commit e7451ae

Please sign in to comment.