Skip to content

Commit

Permalink
fix test (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h authored Aug 25, 2022
1 parent b5ebada commit ab5d407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/test_asyncio/test_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ async def test_range_advanced(modclient: redis.Redis):
assert [(0, 5.0), (5, 6.0)] == await modclient.ts().range(
1, 0, 10, aggregation_type="count", bucket_size_msec=10, align=5
)
assert [(0, 2.5500000000000003), (10, 3.0)] == await modclient.ts().range(
1, 0, 10, aggregation_type="twa", bucket_size_msec=10
)


@pytest.mark.redismod
Expand Down
2 changes: 1 addition & 1 deletion tests/test_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def test_range_advanced(client):
assert [(0, 5.0), (5, 6.0)] == client.ts().range(
1, 0, 10, aggregation_type="count", bucket_size_msec=10, align=5
)
assert [(0, 2.5500000000000003), (10, 3.95)] == client.ts().range(
assert [(0, 2.5500000000000003), (10, 3.0)] == client.ts().range(
1, 0, 10, aggregation_type="twa", bucket_size_msec=10
)

Expand Down

0 comments on commit ab5d407

Please sign in to comment.