You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-12-11 09:22:35 +03:00
* rename maint options according to the latest client options * adjust env variables cae repo uses RE_FAULT_INJECTOR_URL for fault injector DATABASE_NAME is needed to choose from the many databases in cae * fix connection cleanup test
16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
import assert from "assert";
|
|
import { createClient } from "../../..";
|
|
|
|
describe("Negative tests", () => {
|
|
it("should only be enabled with RESP3", () => {
|
|
assert.throws(
|
|
() =>
|
|
createClient({
|
|
RESP: 2,
|
|
maintNotifications: "enabled",
|
|
}),
|
|
"Error: Graceful Maintenance is only supported with RESP3",
|
|
);
|
|
});
|
|
});
|