diff --git a/src/cmd/src/datanode.rs b/src/cmd/src/datanode.rs index e2ff160eefb5..9a26afa5cbd5 100644 --- a/src/cmd/src/datanode.rs +++ b/src/cmd/src/datanode.rs @@ -259,9 +259,9 @@ mod tests { } = options.meta_client.unwrap(); assert_eq!(vec!["127.0.0.1:3002".to_string()], metasrv_addr); - assert_eq!(5000, connect_timeout_millis); - assert_eq!(10000, ddl_timeout_millis); - assert_eq!(3000, timeout_millis); + assert_eq!(5000, connect_timeout_millis.as_millis()); + assert_eq!(10000, ddl_timeout_millis.as_millis()); + assert_eq!(3000, timeout_millis.as_millis()); assert!(tcp_nodelay); assert_eq!("/tmp/greptimedb/", options.storage.data_home); assert!(matches!(