style: 修 main.rs 新增测试的 rustfmt 违规
Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
1 parent
2ba0b74e89
commit
a38c8418dd
1 file changed
+5
-1
+5
-1
@@ -248,7 +248,11 @@ mod tests {
|
||||
let err = std::io::Error::new(std::io::ErrorKind::AddrInUse, "Address already in use");
|
||||
let msg = bind_failure_message(&addr, &err);
|
||||
assert!(msg.contains("127.0.0.1:30000"), "文案应含监听地址:{}", msg);
|
||||
assert!(msg.contains("Address already in use"), "文案应含系统错误:{}", msg);
|
||||
assert!(
|
||||
msg.contains("Address already in use"),
|
||||
"文案应含系统错误:{}",
|
||||
msg
|
||||
);
|
||||
assert!(msg.contains("PORT="), "文案应给出改端口的办法:{}", msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user