fix: resolve integration test compilation + CI errors
CI / CI (pull_request) Successful in 11m46s

Test compilation fixes (8 integration test files):
  1. Ambiguous float types — added f32/f64 annotations
  2. chrono API — replaced with_hour() with date_naive().and_hms_opt()
  3. Missing dev-dependencies — added sqlx + base64
  4. Generic parse — wrapped f32 comparison in parens
  5. Incorrect assertion — 3^5=243 > 100, changed nodes to 1000

CI fixes:
  6. Missing benchmark fixtures — created 3 files in fixtures/benchmarks/
  7. clippy absurd_extreme_comparisons — usize >= 0 always true
  8. authentik_jwt test — Option<SystemTime> type mismatch
  9. http_server tests — removed broken RBAC test module (types deleted)

Result: cargo build --all clean, cargo test --all --lib passes
This commit is contained in:
2026-09-08 17:53:19 -07:00
parent 88234ac927
commit b0cc00f63b
33 changed files with 140 additions and 2541 deletions
+5 -5
View File
@@ -126,11 +126,11 @@ mod tests {
/// Test: Reasoning path confidence
#[test]
fn test_reasoning_path_confidence() {
let conf1 = 0.9;
let conf1: f64 = 0.9;
let conf2 = 0.9;
let total = conf1 * conf2;
assert!((total - 0.81).abs() < 0.01);
assert!((total - 0.81_f64).abs() < 0.01);
}
/// Test: Max hops validation
@@ -172,17 +172,17 @@ mod tests {
/// Test: Confidence chaining (product)
#[test]
fn test_confidence_chaining_product() {
let c1 = 0.9;
let c1: f64 = 0.9;
let c2 = 0.85;
let result = c1 * c2;
assert!((result - 0.765).abs() < 0.01);
assert!((result - 0.765_f64).abs() < 0.01);
}
/// Test: Confidence bounded to 1.0
#[test]
fn test_confidence_bounded() {
let conf = 1.2;
let conf: f64 = 1.2;
let bounded = conf.min(1.0);
assert_eq!(bounded, 1.0);