Skip to content

Commit

Permalink
Test pycrdt-websocket PR 22
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Mar 22, 2024
1 parent 1b29c9a commit eede4c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
run: |
pip install "jupyterlab>=4.0.0,<5"
pip install -e .
pip install https://github.com/davidbrochart/pycrdt-websocket/archive/sqlite-anyio.zip
jlpm
- name: Run pre-commit
Expand Down Expand Up @@ -70,6 +71,7 @@ jobs:
run: |
pip install "jupyterlab>=4.0.0,<5"
pip install -e .
pip install https://github.com/davidbrochart/pycrdt-websocket/archive/sqlite-anyio.zip
jlpm
- name: Run Tests
Expand Down Expand Up @@ -105,6 +107,7 @@ jobs:
run: |
python -m pip install "jupyterlab>=4.0.0,<5"
pip install -e ".[test]" codecov
pip install https://github.com/davidbrochart/pycrdt-websocket/archive/sqlite-anyio.zip
- name: List installed packages
run: |
Expand Down Expand Up @@ -176,6 +179,7 @@ jobs:
- name: Install the Python dependencies
run: |
pip install -e ".[test]"
pip install https://github.com/davidbrochart/pycrdt-websocket/archive/sqlite-anyio.zip
- name: List installed packages
run: |
Expand Down Expand Up @@ -218,6 +222,7 @@ jobs:
cd test
python -m pip install "jupyterlab>=4.0.0,<5"
python -m pip install ".[test]"
python -m pip install https://github.com/davidbrochart/pycrdt-websocket/archive/sqlite-anyio.zip
echo "::endgroup::"
- name: Run Test
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ classifiers = [
dependencies = [
"jupyter_server>=2.0.0,<3.0.0",
"jupyter_ydoc>=2.0.0,<3.0.0",
"pycrdt-websocket>=0.12.5,<0.13.0",
#"pycrdt-websocket>=0.12.5,<0.13.0",
"jupyter_events>=0.10.0",
"jupyter_server_fileid>=0.7.0,<1",
"jsonschema>=4.18.0"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ async def connect(
stop_ready.set()
await do_stop.wait()
# allow some time for last messages to arrive through websocket
# FIXME: how long? 1 second is arbitrary, maybe not enough
await sleep(1)
# FIXME: how long?
await sleep(10)
stop_done.set()
return
await sleep(uniform(0, change_max_delay))
Expand Down

0 comments on commit eede4c4

Please sign in to comment.