Skip to content

Commit d658221

Browse files
update comments
1 parent 14091e7 commit d658221

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/network.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ fn test_tcp_stream_connect() {
1212
WasmRuntimeAsyncEngine::block_on(async {
1313
println!("=== TcpStream Connect Test Start ===");
1414

15-
// 1️⃣ Create the TCP stream
15+
// Create the TCP stream
1616
let mut stream = TcpStream::new_ipv4().expect("Failed to create TCP stream");
1717

1818
println!("[Main] Created TcpStream.");
1919

20-
// 2️⃣ Attempt to connect to localhost:8080
20+
// Attempt to connect to localhost:8080
2121
let addr = IpAddr::from_str("127.0.0.1").expect("Invalid IP address");
2222

2323
let connect_result = stream.connect(addr, 63000).await;
@@ -38,7 +38,7 @@ fn test_tcp_stream_connect() {
3838
}
3939
}
4040

41-
// 3️⃣ Wait a little to simulate doing work
41+
// Wait a little to simulate doing work
4242
Timer::sleep(Duration::from_millis(200)).await;
4343
println!("[Main] Done waiting, TcpStream will now be dropped.");
4444

tests/timers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn test_timeout_behavior() {
4949
WasmRuntimeAsyncEngine::block_on(async {
5050
println!("=== Timeout Behavior Test Start ===");
5151

52-
// 1️⃣ This should complete successfully
52+
// This should complete successfully
5353
let fast_future = async {
5454
println!("[Fast Future] Sleeping 100ms...");
5555
Timer::sleep(Duration::from_millis(100)).await;
@@ -65,7 +65,7 @@ fn test_timeout_behavior() {
6565
);
6666
assert_eq!(result_fast.unwrap(), "fast_result");
6767

68-
// 2️⃣ This should time out
68+
// This should time out
6969
let slow_future = async {
7070
println!("[Slow Future] Sleeping 2s...");
7171
Timer::sleep(Duration::from_secs(2)).await;
@@ -79,7 +79,7 @@ fn test_timeout_behavior() {
7979
let err = result_slow.unwrap_err();
8080
assert_eq!(err.kind(), std::io::ErrorKind::TimedOut);
8181

82-
// 3️⃣ This should be right on the edge (expect to succeed)
82+
// This should be right on the edge (expect to succeed)
8383
let edge_future = async {
8484
println!("[Edge Future] Sleeping 500ms...");
8585
Timer::sleep(Duration::from_millis(500)).await;

0 commit comments

Comments
 (0)