1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

set jetstream=true in nats server for testing

This commit is contained in:
postmannen 2024-11-29 13:55:54 +01:00
parent 3ff67a5f1f
commit 5776baad37

View file

@ -95,6 +95,7 @@ func newNatsServerForTesting(port int) *natsserver.Server {
nsOpt := &natsserver.Options{
Host: "127.0.0.1",
Port: port,
JetStream: true,
}
ns, err := natsserver.NewServer(nsOpt)