I have tried using `spawn`, but no clean up takes place until the whole test suites completes. This is troublesome when the number of test grows and some resources start misbehaving (too many open DB connections).
-
-
Show this thread
-
I considered using something like a supervisor from
@bastion_rs, but `with_exec` and the Actix web server don't like each other (trait bounds issues).Show this thread -
Could I make it happen with a thread and a channel? How do I send the "shutdown" command?
Show this thread -
This would be extremely useful to run servers for HTTP-mocking 3rd party APIs that my application under test is interesting with (for black box testing).
Show this thread
End of conversation
New conversation -
-
-
Have you looked at Mockitio? https://github.com/lipanski/mockito … I used it for some testing http endpoints, I think it might help you here?
-
Ah I didn’t see the rest of the thread, not sure it will help?
- 1 more reply
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at