MCPcopy Create free account
hub / github.com/Effect-TS/effect / isRemoved

Function isRemoved

packages/sql/pg/test/utils.ts:77–79  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

75// Docker can keep removing after a client timeout, so teardown accepts
76// "removal already in progress" without waiting for removal to finish.
77const isRemoved = (error: any) =>
78 error?.statusCode === 404 ||
79 (error?.statusCode === 409 && /removal of container .* is already in progress/.test(error.json?.message))
80
81// Shared with the regression tests so they exercise the real container finalizer.
82export const releasePgContainer = Effect.fnUntraced(

Callers 1

utils.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected