Skip to content

Commit 0476057

Browse files
committed
fix:timeseries test
1 parent 07c7f8e commit 0476057

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_stack/test_timeseries.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ def test_add_duplicate_policy(r: redis.Redis):
206206
assert 1 == r.ts().add("time-serie-add-ooo-block", 1, 5.0)
207207
with pytest.raises(Exception) as e:
208208
r.ts().add("time-serie-add-ooo-block", 1, 5.0, on_duplicate="block")
209-
assert str(e.value) == "TSDB: Error at upsert, update is not supported when DUPLICATE_POLICY is set to BLOCK mode"
209+
assert str(e.value).startswith(
210+
"TSDB: Error at upsert, update is not supported when DUPLICATE_POLICY is set to BLOCK mode"
211+
)
210212

211213
# Test for duplicate policy LAST
212214
assert 1 == r.ts().add("time-serie-add-ooo-last", 1, 5.0)

0 commit comments

Comments
 (0)