MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isValkeyReachable

Function isValkeyReachable

apps/api/tests/helpers/valkey.ts:42–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40};
41
42export const isValkeyReachable = async (): Promise<boolean> => {
43 if (!RUN_VALKEY_NETWORK_TESTS) {
44 return false;
45 }
46
47 if (availability !== null) {
48 return availability;
49 }
50
51 availability = await canOpenTcpConnection();
52
53 return availability;
54};
55
56/**
57 * Skip-guard for Valkey-touching tests (cache, pubsub, SSE, OAuth state,

Callers 1

requireValkeyFunction · 0.85

Calls 1

canOpenTcpConnectionFunction · 0.85

Tested by

no test coverage detected