Skip to content

Commit b0c93c4

Browse files
committed
style(run-engine): oxfmt the new hash-tag assertions
1 parent 80a6dab commit b0c93c4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • internal-packages/run-engine/src/engine/waitpointCoordinator

internal-packages/run-engine/src/engine/waitpointCoordinator/keys.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,12 @@ describe("assertSingleSlot", () => {
103103
it("rejects an empty first pair, matching Redis rather than skipping to a later one", () => {
104104
// Redis stops at the first `{`/`}` pair. An empty one means no tag at all, so it hashes
105105
// the whole key. A regex would have found `a` here and wrongly claimed a shared slot.
106-
expect(() => assertSingleSlot("bad", ["wp:{}{a}", "wp:{}{a}"])).toThrow(
107-
WaitpointKeyTagError
108-
);
106+
expect(() => assertSingleSlot("bad", ["wp:{}{a}", "wp:{}{a}"])).toThrow(WaitpointKeyTagError);
109107
});
110108

111109
it("takes the first pair when several are present", () => {
112110
expect(() => assertSingleSlot("ok", ["wp:{a}{b}", "wp:{a}:w"])).not.toThrow();
113-
expect(() => assertSingleSlot("bad", ["wp:{a}{b}", "wp:{b}:w"])).toThrow(
114-
WaitpointKeyTagError
115-
);
111+
expect(() => assertSingleSlot("bad", ["wp:{a}{b}", "wp:{b}:w"])).toThrow(WaitpointKeyTagError);
116112
});
117113

118114
it("does not degrade on a key made of many opening braces", () => {

0 commit comments

Comments
 (0)