Skip to content

Commit

Permalink
Fix test histogram values
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Nov 29, 2021
1 parent d993be3 commit 8b95d80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_search_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ def test_result(datastore, client):


def test_safelist(datastore, client):
res = client.search.histogram.safelist('added', "id:*", mincount=1, start="now-6h",
end="now+6h", gap="+30m")
res = client.search.histogram.safelist('added', "id:*", mincount=1, start="now-15d",
end="now+15d", gap="+1d")
assert isinstance(res, dict)
for v in res.values():
assert v >= 1


def test_signature(datastore, client):
res = client.search.histogram.signature('last_modified', "id:*", mincount=1, start="now-6h",
end="now+6h", gap="+30m")
end="now+6h", gap="+1h")
assert isinstance(res, dict)
for v in res.values():
assert v >= 1
Expand Down

0 comments on commit 8b95d80

Please sign in to comment.