test: Fix flaky test by specifying ORDER BY in query
@@ -93,7 +93,7 @@ async fn test_read_default(db_name: &str, addr: &str) {
.arg("database")
.arg("query")
.arg(db_name)
- .arg("select * from cpu")
+ .arg("select * from cpu order by time")
.arg("--host")
.arg(addr)
.assert()
@@ -114,7 +114,7 @@ async fn test_read_format_pretty(db_name: &str, addr: &str) {
.arg("database")
.arg("query")
.arg(db_name)
- .arg("select * from cpu")
+ .arg("select * from cpu order by time")
.arg("--host")
.arg(addr)
.arg("--format")
@@ -133,7 +133,7 @@ async fn test_read_format_csv(db_name: &str, addr: &str) {
.arg("database")
.arg("query")
.arg(db_name)
- .arg("select * from cpu")
+ .arg("select * from cpu order by time")
.arg("--host")
.arg(addr)
.arg("--format")
@@ -151,7 +151,7 @@ async fn test_read_format_json(db_name: &str, addr: &str) {
.arg("database")
.arg("query")
.arg(db_name)
- .arg("select * from cpu")
+ .arg("select * from cpu order by time")
.arg("--host")
.arg(addr)
.arg("--format")
@@ -181,7 +181,7 @@ async fn test_read_error(db_name: &str, addr: &str) {
.arg("database")
.arg("query")
.arg(db_name)
- .arg("select * from cpu")
+ .arg("select * from cpu order by time")
.arg("--host")
.arg(addr)
.arg("--format")
