Skip to content

Commit b635421

Browse files
[ISSUE #775]⚡️Optimize test_start_and_shutdown test case✅ (#776)
1 parent f07e33d commit b635421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketmq-common/src/common/thread/thread_service_tokio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ mod tests {
153153
assert!(service_thread.started.load(Ordering::SeqCst));
154154
assert!(!service_thread.stopped.load(Ordering::SeqCst));
155155

156-
time::sleep(std::time::Duration::from_secs(100)).await;
156+
time::sleep(std::time::Duration::from_secs(1)).await;
157157
service_thread.shutdown_interrupt(false).await;
158158
assert!(!service_thread.started.load(Ordering::SeqCst));
159159
assert!(service_thread.stopped.load(Ordering::SeqCst));

0 commit comments

Comments
 (0)