Skip to content

Commit

Permalink
Cleanup the tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Nov 15, 2023
1 parent 79c80b6 commit 3111ba6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jetstream/test/ordered_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,10 @@ func TestOrderedConsumerNextOrder(t *testing.T) {

go func() {
for i := 0; i < 100_000; i++ {
js.Publish(ctx, "FOO.A", []byte(fmt.Sprintf("%d", 1)))
_, err := js.Publish(ctx, "FOO.A", []byte(fmt.Sprintf("%d", 1)))
if err != nil {
t.Fatalf("Unexpected error while publishing: %v", err)
}
}
}()

Expand All @@ -1429,12 +1432,10 @@ func TestOrderedConsumerNextOrder(t *testing.T) {

for i := 0; i < 100_000; i++ {

fmt.Printf("i: %d\n", i)
msg, err := c.Next(jetstream.FetchMaxWait(5 * time.Second))
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
fmt.Println("got some message ", i)
meta, err := msg.Metadata()
if err != nil {
t.Fatalf("Unexpected error: %v", err)
Expand Down

0 comments on commit 3111ba6

Please sign in to comment.