MCPcopy
hub / github.com/nats-io/nats.go / TestJetStreamNotEnabled

Function TestJetStreamNotEnabled

test/js_test.go:74–84  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

72}
73
74func TestJetStreamNotEnabled(t *testing.T) {
75 s := RunServerOnPort(-1)
76 defer shutdownJSServerAndRemoveStorage(t, s)
77
78 nc, js := jsClient(t, s)
79 defer nc.Close()
80
81 if _, err := js.AccountInfo(); err != nats.ErrJetStreamNotEnabled {
82 t.Fatalf("Did not get the proper error, got %v", err)
83 }
84}
85
86func TestJetStreamErrors(t *testing.T) {
87 t.Run("API error", func(t *testing.T) {

Callers

nothing calls this directly

Calls 6

FatalfMethod · 0.80
RunServerOnPortFunction · 0.70
jsClientFunction · 0.70
AccountInfoMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected