mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-11-03 20:56:39 -06:00
fix test
This commit is contained in:
1 parent
8a605738c5
commit
b8d289588e
1 file changed
+2
-10
@@ -1,4 +1,4 @@
|
||||
use crate::{FanControlMode, FanOptions, GIT_COMMIT, PmfwOptions, Pong, Request, Response};
|
||||
use crate::{FanControlMode, FanOptions, PmfwOptions, Pong, Request, Response};
|
||||
use anyhow::anyhow;
|
||||
use serde_json::json;
|
||||
use std::collections::BTreeMap;
|
||||
@@ -17,15 +17,7 @@ fn ping_requset() {
|
||||
fn pong_response() {
|
||||
let expected_response = json!({
|
||||
"status": "ok",
|
||||
"data": {
|
||||
"version": env!("CARGO_PKG_VERSION"),
|
||||
"commit": GIT_COMMIT,
|
||||
"profile": if cfg!(debug_assertions) {
|
||||
"debug"
|
||||
} else {
|
||||
"release"
|
||||
}
|
||||
}
|
||||
"data": null,
|
||||
});
|
||||
let response = Response::Ok(Pong);
|
||||
|
||||
|
||||
Reference in new issue
Block a user