Skip to content

Commit b481c86

Browse files
Fix test_parse_callback_interval_valid test
The test was failing because parse_callback_interval() now returns anyhow::Result<u64> instead of u64. Updated the test to properly unwrap the Result before comparison. Co-authored-by: Hulto <hulto@users.noreply.github.com>
1 parent 4d5f226 commit b481c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

implants/lib/pb/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ mod tests {
344344

345345
#[test]
346346
fn test_parse_callback_interval_valid() {
347-
let interval = parse_callback_interval();
347+
let interval = parse_callback_interval().expect("Failed to parse callback interval");
348348
// Should parse successfully or default to DEFAULT_INTERVAL_SECONDS
349349
assert!(interval >= DEFAULT_INTERVAL_SECONDS);
350350
}

0 commit comments

Comments
 (0)