Skip to content

Commit

Permalink
fix: correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed May 21, 2024
1 parent 536026b commit fc393b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion faststream/nats/opentelemetry/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def telemetry_attributes_provider_factory(
]:
if isinstance(msg, Sequence):
return NatsBatchTelemetrySettingsProvider()
elif isinstance(msg, Msg):
elif isinstance(msg, Msg) or msg is None:
return NatsTelemetrySettingsProvider()
else:
# KeyValue and Object Storage watch cases
Expand Down
1 change: 1 addition & 0 deletions tests/brokers/nats/test_kv_declarer_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


@pytest.mark.asyncio()
@pytest.mark.nats()
async def test_kv_storage_cache():
broker = NatsBroker()
await broker.connect()
Expand Down
1 change: 1 addition & 0 deletions tests/brokers/nats/test_os_declarer_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


@pytest.mark.asyncio()
@pytest.mark.nats()
async def test_object_storage_cache():
broker = NatsBroker()
await broker.connect()
Expand Down

0 comments on commit fc393b2

Please sign in to comment.