Skip to content

Commit

Permalink
Comment for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed May 6, 2024
1 parent d3ef836 commit e85d0b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -20265,6 +20265,8 @@ test_ForcedReconnect(void)
s = natsConnection_Reconnect(nc);
testCond(s == NATS_OK);

// On MacOS this returns NATS_CONNECTION_CLOSED, on Ubuntu we get a
// NATS_TIMEOUT.
test("But the connection is closed: ");
s = natsSubscription_NextMsg(&msg, sub, 1000);
testCond(((s == NATS_CONNECTION_CLOSED) || (s = NATS_TIMEOUT)) && (msg == NULL));
Expand Down

0 comments on commit e85d0b7

Please sign in to comment.