nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
16k stars 1.41k forks source link

De-flake don't InstallSnapshot on stop tests #6156

Closed MauriceVanVeen closed 13 hours ago

MauriceVanVeen commented 16 hours ago

Example test failure:

=== RUN   TestJetStreamClusterDontInstallSnapshotWhenStoppingConsumer
    jetstream_cluster_4_test.go:4756: require uint64 equal, but got: 4 != 3
--- FAIL: TestJetStreamClusterDontInstallSnapshotWhenStoppingConsumer (1.21s)

Explicitly set the expected applied value for the stream/consumer. Instead of having it be dynamically determined, which could flake.

Signed-off-by: Maurice van Veen github@mauricevanveen.com