Skip to content

Commit

Permalink
Increase entropy in test source creation to prevent flakiness.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 702413537
  • Loading branch information
sdenton4 authored and copybara-github committed Dec 3, 2024
1 parent 1d96dc0 commit 302ddd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hoplite/db/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def insert_random_embeddings(
embedding = np.float32(rng.normal(size=emb_dim, loc=0, scale=0.1))
dataset_name = rng.choice(dataset_names)
source_name = ''.join(
[str(a) for a in np.random.choice(np_alpha, size=3, replace=False)]
[str(a) for a in rng.choice(np_alpha, size=8, replace=False)]
)
offsets = rng.integers(0, 100, size=[1])
source = interface.EmbeddingSource(dataset_name, source_name, offsets)
Expand Down

0 comments on commit 302ddd5

Please sign in to comment.