@@ -18,7 +18,7 @@ describe("RuntimeService protocol response correlation", () => {
1818 let resolvedPayload : Record < string , unknown > | null = null ;
1919 const timeout = setTimeout ( ( ) => undefined , 10_000 ) ;
2020
21- runtimeService . pendingRpcResponses . set ( "req-legacy " , {
21+ runtimeService . pendingRpcResponses . set ( "req-forwarded-response " , {
2222 resolve : ( payload ) => {
2323 resolvedPayload = payload ;
2424 } ,
@@ -27,15 +27,15 @@ describe("RuntimeService protocol response correlation", () => {
2727 } ) ;
2828
2929 runtimeService . resolvePendingRpcResponse ( {
30- id : "req-legacy " ,
30+ id : "req-forwarded-response " ,
3131 type : "response" ,
3232 command : "prompt" ,
3333 success : true ,
3434 data : { } ,
3535 } ) ;
3636
3737 expect ( resolvedPayload ) . toBeNull ( ) ;
38- expect ( runtimeService . pendingRpcResponses . has ( "req-legacy " ) ) . toBe ( true ) ;
38+ expect ( runtimeService . pendingRpcResponses . has ( "req-forwarded-response " ) ) . toBe ( true ) ;
3939
4040 clearTimeout ( timeout ) ;
4141 runtimeService . pendingRpcResponses . clear ( ) ;
@@ -58,7 +58,7 @@ describe("RuntimeService protocol response correlation", () => {
5858 let resolvedPayload : Record < string , unknown > | null = null ;
5959 const timeout = setTimeout ( ( ) => undefined , 10_000 ) ;
6060
61- runtimeService . pendingRpcResponses . set ( "req-v2 " , {
61+ runtimeService . pendingRpcResponses . set ( "req-taskd-envelope " , {
6262 resolve : ( payload ) => {
6363 resolvedPayload = payload ;
6464 } ,
@@ -67,20 +67,20 @@ describe("RuntimeService protocol response correlation", () => {
6767 } ) ;
6868
6969 runtimeService . resolvePendingRpcResponse ( {
70- id : "req-v2 " ,
70+ id : "req-taskd-envelope " ,
7171 ok : true ,
7272 result : {
7373 accepted : true ,
7474 } ,
7575 } ) ;
7676
7777 expect ( resolvedPayload ) . toEqual ( {
78- id : "req-v2 " ,
78+ id : "req-taskd-envelope " ,
7979 ok : true ,
8080 result : {
8181 accepted : true ,
8282 } ,
8383 } ) ;
84- expect ( runtimeService . pendingRpcResponses . has ( "req-v2 " ) ) . toBe ( false ) ;
84+ expect ( runtimeService . pendingRpcResponses . has ( "req-taskd-envelope " ) ) . toBe ( false ) ;
8585 } ) ;
8686} ) ;
0 commit comments