-
Hey, I just got into a situation with to me unexplainable behaviour when using I have been using tokio for a long time now and everything is pretty straigt forward. However, I am now in a situation where I have set up integration tests which spawn multiple server / node processes (they are split in prod) from within the same I have an entry fn like My problem now seems to be, that things like Sometimes a Now my question: I can provide more information if necessary. The problematic test setup is public here: Hiqlite Tests |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You're not using I don't know whether "things like |
Beta Was this translation helpful? Give feedback.
-
I had a look at the
Actually, both things happen. For instance sleeps are ignored when a client should sleep after a failed try-to-connect and it simply skips the sleep and executes the code that comes afterwards, like the But I will have a look at what I can achieve with the time pause and / or separating my tasks via Thank you very much for the quick answer! Edit: Btw, when I use |
Beta Was this translation helpful? Give feedback.
It could be that you're using
spawn_blocking
for a background task that runs forever. If so, you'll need to change it tostd::thread::spawn
because Tokio assumes that you have ongoing work when there arespawn_blocking
tasks, and so it will not auto-advance time.