Skip to content

Commit

Permalink
fix windows test (facebookresearch#2862)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#2862

Fix windows test introduced by range search diff

Reviewed By: algoriddle

Differential Revision: D45901726

fbshipit-source-id: 16259b7718f1409adef814ea4c2b5707304849ca
  • Loading branch information
mdouze authored and facebook-github-bot committed May 17, 2023
1 parent 615e3fc commit 48d48a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_build_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def do_test(self, capacity, n):
""" test that we are able to lookup """
rs = np.random.RandomState(123)
# make sure we have unique values
keys = np.unique(rs.choice(2 ** 29, size=n))
keys = np.unique(rs.choice(2 ** 29, size=n).astype("int64"))
rs.shuffle(keys)
n = keys.size
vals = rs.choice(2 ** 30, size=n).astype('int64')
Expand Down

0 comments on commit 48d48a3

Please sign in to comment.