Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

fix: add local e2e test #1965

Merged
merged 1 commit into from
Feb 14, 2025
Merged

fix: add local e2e test #1965

merged 1 commit into from
Feb 14, 2025

Conversation

vansangpfiev
Copy link
Contributor

Describe Your Changes

This pull request adds a new end-to-end test script for the local server in the engine/e2e-test/local_test.py file. The script includes setup, teardown, and testing functionalities for the server, utilizing multiple threads to send requests and measure performance.

Key changes include:

New Test Script:

  • Added local_test.py to perform end-to-end testing of the local server, including setup, teardown, and performance measurement.

Setup and Teardown Functions:

  • Implemented setup_env and teardown functions to configure and clean up the server environment before and after tests.

Request Handling:

  • Created functions to handle different types of HTTP requests (make_request, get_setup_configs, get_teardown_configs, get_request_configs).

Multithreading and Performance Measurement:

  • Utilized ThreadPoolExecutor to run multiple threads for sending requests and measuring the performance of the server.

WebSocket Handling:

  • Added asynchronous function wait_for_websocket_download_success_event to wait for specific WebSocket events during setup.

Fixes Issues

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@vansangpfiev vansangpfiev self-assigned this Feb 14, 2025
@vansangpfiev vansangpfiev merged commit cd8938a into dev Feb 14, 2025
8 checks passed
@vansangpfiev vansangpfiev deleted the fix/e2e-test branch February 14, 2025 02:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants