fix(tests): restore global options

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-09-17 14:48:56 +08:00
parent 68dcbe6adc
commit 248709d6c8
+2
View File
@@ -423,6 +423,7 @@ mod tests {
#[test]
fn test_check_ws() {
let options = Config::get_options();
// enable websocket
Config::set_option(keys::OPTION_ALLOW_WEBSOCKET.to_string(), "Y".to_string());
@@ -551,5 +552,6 @@ mod tests {
assert_eq!(check_ws("127.0.0.1:23455"), "ws://127.0.0.1:23458");
assert_eq!(check_ws("127.0.0.1:23456"), "ws://127.0.0.1:23458");
assert_eq!(check_ws("127.0.0.1:34567"), "ws://127.0.0.1:34569");
Config::set_options(options);
}
}