Skip to content

Commit 97d0435

Browse files
committed
Fixes redundant tag sending and updates the test to be correct with the new behavior
1 parent 4cf9811 commit 97d0435

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

btrdb/stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def _update_tags_collection(self, tags, collection):
823823
"""
824824
:meta private:
825825
"""
826-
tags = self.tags() if tags is None else tags
826+
tags = {} if tags is None else tags
827827
collection = self.collection if collection is None else collection
828828
if collection is None:
829829
raise BTRDBValueError(

tests/btrdb/test_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def test_update_collection(self):
278278

279279
stream.update(collection=collection)
280280
stream._btrdb.ep.setStreamTags.assert_called_once_with(
281-
uu=uu, expected=42, tags=stream.tags(), collection=collection
281+
uu=uu, expected=None, tags={}, collection=collection
282282
)
283283
stream._btrdb.ep.setStreamAnnotations.assert_not_called()
284284

0 commit comments

Comments
 (0)