File tree Expand file tree Collapse file tree
internal-packages/run-engine/src/engine/waitpointCoordinator Expand file tree Collapse file tree Original file line number Diff line number Diff 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" , ( ) => {
You can’t perform that action at this time.
0 commit comments