Skip to content

Commit

Permalink
fix: remove requests after they have been completed (#2302)
Browse files Browse the repository at this point in the history
Refs #2301
  • Loading branch information
OrKoN authored Jun 10, 2024
1 parent ce7a305 commit e4b4139
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/bidiMapper/modules/network/NetworkRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export class NetworkRequest {
responseInterceptionCompleted
) {
this.#emitEvent(this.#getResponseReceivedEvent.bind(this));
this.#networkStorage.deleteRequest(this.id);
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/network/test_continue_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ async def test_continue_request_twice(websocket, context_id, example_url):
Exception,
match=str({
"error": "no such request",
"message": f"No blocked request found for network id '{network_id}'"
"message": f"Network request with ID '{network_id}' doesn't exist"
})):
await execute_command(
websocket, {
Expand Down
2 changes: 1 addition & 1 deletion tests/network/test_continue_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ async def test_continue_response_twice(websocket, context_id, example_url):
Exception,
match=str({
"error": "no such request",
"message": f"No blocked request found for network id '{network_id}'"
"message": f"Network request with ID '{network_id}' doesn't exist"
})):
await execute_command(
websocket, {
Expand Down
2 changes: 1 addition & 1 deletion tests/network/test_continue_with_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ async def test_continue_with_auth_twice(websocket, context_id,
Exception,
match=str({
"error": "no such request",
"message": f"No blocked request found for network id '{network_id}'"
"message": f"Network request with ID '{network_id}' doesn't exist"
})):
await execute_command(
websocket, {
Expand Down
2 changes: 1 addition & 1 deletion tests/network/test_provide_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ async def test_provide_response_twice(websocket, context_id, example_url):
Exception,
match=str({
"error": "no such request",
"message": f"No blocked request found for network id '{network_id}'"
"message": f"Network request with ID '{network_id}' doesn't exist"
})):
await execute_command(
websocket, {
Expand Down

0 comments on commit e4b4139

Please sign in to comment.