mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 09:59:22 +08:00
Introduce unit tests (#248)
* Proof-of-concept: unittests * Add pytest-asyncio dep * Import Body from stream * Add test for allow_extra_tracks * Cleanup decorators * add test to linting * fix ruff issues * Run formatter * fix * Dont test every python version --------- Co-authored-by: Marcus Valtonen Örnhag <marcus.valtonen.ornhag@ericsson.com> Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
This commit is contained in:
committed by
GitHub
parent
0767030997
commit
2331079c0f
@@ -73,6 +73,11 @@
|
||||
"error",
|
||||
`Too many concurrent connections. Please try again later!`,
|
||||
);
|
||||
} else if (
|
||||
msg.status === "failed" &&
|
||||
msg.meta?.error === "connection_already_exists"
|
||||
) {
|
||||
gradio.dispatch("error", "Connection already exists");
|
||||
} else {
|
||||
gradio.dispatch("error", "Unexpected server error");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user