Skip to content

Commit c7dd9c8

Browse files
committed
test(runtime): move run after poll
1 parent 7eb51d1 commit c7dd9c8

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

compio-runtime/tests/custom_loop.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ fn cf_run_loop() {
5252
}
5353
.detach();
5454
loop {
55-
self.runtime.run();
56-
if let Some(result) = result.take() {
57-
break result;
58-
}
59-
6055
self.runtime.poll_with(Some(Duration::ZERO));
6156

6257
self.runtime.run();
@@ -139,11 +134,6 @@ fn message_queue() {
139134
}
140135
.detach();
141136
loop {
142-
self.runtime.run();
143-
if let Some(result) = result.take() {
144-
break result;
145-
}
146-
147137
self.runtime.poll_with(Some(Duration::ZERO));
148138

149139
self.runtime.run();
@@ -242,11 +232,6 @@ fn glib_context() {
242232
}
243233
.detach();
244234
loop {
245-
self.runtime.run();
246-
if let Some(result) = result.take() {
247-
break result;
248-
}
249-
250235
self.runtime.poll_with(Some(Duration::ZERO));
251236

252237
self.runtime.run();

0 commit comments

Comments
 (0)