Skip to content

Commit f28362d

Browse files
authored
Release/v2.10.0 (nats-io#680)
* Update GH workflow * Bump version to v2.10.0 --------- Signed-off-by: Waldemar Quevedo <[email protected]>
1 parent 74316d4 commit f28362d

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ on:
44
push:
55
branches:
66
- main
7+
- "release/**"
8+
- "dev/**"
79
pull_request:
810
branches:
911
- "**"
1012

1113
jobs:
1214
test:
13-
runs-on: ${{ matrix.os }}
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 20
17+
env:
18+
NATS_SERVER_VERSION: ${{ matrix.nats_version }}
1419
strategy:
20+
fail-fast: false
1521
matrix:
16-
os: [ubuntu-latest]
1722
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
23+
nats_version: ["v2.10.26", "v2.11.0", "main"]
1824

1925
steps:
2026
- name: Check out repository
@@ -28,6 +34,7 @@ jobs:
2834
- name: Install dependencies
2935
run: |
3036
pip install pipenv
37+
pip install certifi
3138
pipenv install --dev
3239
bash ./scripts/install_nats.sh
3340

nats/aio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
)
6060
from .transport import TcpTransport, Transport, WebSocketTransport
6161

62-
__version__ = "2.9.0"
62+
__version__ = "2.10.0"
6363
__lang__ = "python3"
6464
_logger = logging.getLogger(__name__)
6565
PROTOCOL = 1

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import nats
1212
import nats.errors
1313
import pytest
14-
from nats.aio.client import Client as NATS, __version__, ServerVersion
14+
from nats.aio.client import Client as NATS, ServerVersion, __version__
1515
from tests.utils import (
1616
ClusteringDiscoveryAuthTestCase,
1717
ClusteringTestCase,

tests/test_js.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2618,8 +2618,9 @@ async def error_handler(e):
26182618
# Check remaining messages in the stream state.
26192619
status = await kv.status()
26202620
# NOTE: Behavior changed here from v2.10.9 => v2.10.10
2621-
# assert status.values == 2
2622-
assert status.values == 1
2621+
# then changed again around v2.10.26.
2622+
assert status.values == 2
2623+
# assert status.values == 1
26232624

26242625
entry = await kv.get("hello")
26252626
assert "hello" == entry.key
@@ -2634,13 +2635,13 @@ async def error_handler(e):
26342635
assert 1 == entry.revision
26352636

26362637
status = await kv.status()
2637-
assert status.values == 1
2638+
assert status.values == 2
26382639

26392640
for i in range(100, 200):
26402641
await kv.put(f"hello.{i}", b"Hello JS KV!")
26412642

26422643
status = await kv.status()
2643-
assert status.values == 101
2644+
assert status.values == 102
26442645

26452646
with pytest.raises(NotFoundError):
26462647
await kv.get("hello.5")

0 commit comments

Comments
 (0)