Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildKite committed Jan 3, 2025
1 parent 57687ba commit 41c37bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rs/config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "config"
version = "0.1.0"
edition = "2024"
edition = "2021"

[dependencies]
serde.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions rs/utils/src/distance/dot_product.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl DistanceCalculator for DotProductDistanceCalculator {
});
}

#[inline(always)]
#[inline(always)]
fn outermost_op(x: f32) -> f32 {
Self::neg_score(x)
}
Expand All @@ -101,7 +101,7 @@ mod tests {
fn test_dot_product_distance_calculator() {
let a = generate_random_vector(128);
let b = generate_random_vector(128);
let eps = 1e-5;
let eps = 2.0 * 1e-5;
let result = DotProductDistanceCalculator::calculate(&a, &b);
let expected = DotProductDistanceCalculator::calculate_scalar(&a, &b);
assert!((result - expected).abs() < eps);
Expand Down

0 comments on commit 41c37bf

Please sign in to comment.