Skip to content

Commit 77ab4ba

Browse files
author
Jiayu Liu
committed
fix unit test
1 parent c0f5b82 commit 77ab4ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datafusion/tests/sql.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,13 +2906,15 @@ async fn test_current_timestamp_expressions_non_optimized() -> Result<()> {
29062906
let t2 = t2_naive.timestamp();
29072907
assert!(t1 <= t2 && t2 <= t3);
29082908
assert_eq!(res2, res1);
2909+
2910+
Ok(())
29092911
}
29102912

29112913
#[tokio::test]
29122914
async fn test_random_expression() -> Result<()> {
29132915
let mut ctx = create_ctx()?;
2914-
let sql = format!("SELECT random() r1");
2915-
let actual = execute(&mut ctx, sql.as_str()).await;
2916+
let sql = "SELECT random() r1";
2917+
let actual = execute(&mut ctx, sql).await;
29162918
let r1 = actual[0][0].parse::<f64>().unwrap();
29172919
assert!(0.0 <= r1);
29182920
assert!(r1 < 1.0);

0 commit comments

Comments
 (0)