Skip to content

Commit

Permalink
test: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cvauclair committed Nov 29, 2024
1 parent fc69515 commit c2c1996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rig-core/src/pipeline/parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ mod tests {
);

let result = pipeline.try_call(1).await;
assert_eq!(result, Ok((2, 3, "1 is the number!".to_string(), false)));
assert_eq!(result, Ok((1, 2, "1 is the number!".to_string(), true)));
}

#[tokio::test]
Expand Down
2 changes: 1 addition & 1 deletion rig-core/src/pipeline/try_op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ mod tests {
#[tokio::test]
async fn test_try_op() {
let op = map(|x: i32| if x % 2 == 0 { Ok(x) } else { Err("x is odd") });
let result = op.try_call(1).await.unwrap();
let result = op.try_call(2).await.unwrap();
assert_eq!(result, 2);
}

Expand Down

0 comments on commit c2c1996

Please sign in to comment.