Skip to content

Commit

Permalink
upgrade version to v0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
dobyte committed Mar 10, 2023
1 parent 4e8579d commit 8074a4c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eventbus/nats/eventbus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"github.com/dobyte/due/eventbus"
"github.com/dobyte/due/eventbus/nats"
"github.com/dobyte/due/eventbus/redis"
"log"
"testing"
"time"
Expand Down Expand Up @@ -79,7 +78,7 @@ func TestEventbus_Client2_Subscribe(t *testing.T) {
func TestEventbus_Publish(t *testing.T) {
var (
err error
eb = redis.NewEventbus()
eb = nats.NewEventbus()
ctx = context.Background()
)

Expand All @@ -95,5 +94,10 @@ func TestEventbus_Publish(t *testing.T) {
t.Fatal(err)
}

err = eb.Publish(ctx, loginTopic, "login")
if err != nil {
t.Fatal(err)
}

t.Log("publish success")
}

0 comments on commit 8074a4c

Please sign in to comment.