We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df34539 commit 4398436Copy full SHA for 4398436
crates/core/tests/adaptive_speculative.rs
@@ -47,7 +47,7 @@ fn test_adaptive_speculative_basic() {
47
// Run a few steps
48
for _ in 0..5 {
49
let results = engine.step_adaptive_speculative().unwrap();
50
- for (_, token) in results {
+ for (_, _token) in results {
51
let _ = rx.try_recv();
52
}
53
@@ -71,7 +71,7 @@ fn test_adaptive_speculative_adjusts_draft_count() {
71
cooldown_steps: 2,
72
});
73
74
- let initial_max = engine
+ let _initial_max = engine
75
.adaptive_decoder
76
.as_ref()
77
.unwrap()
@@ -92,5 +92,5 @@ fn test_adaptive_speculative_adjusts_draft_count() {
92
93
94
.current_max_draft_tokens();
95
- assert!(final_max >= 2 && final_max <= 6);
+ assert!((2..=6).contains(&final_max));
96
0 commit comments