Replies: 2 comments
-
For what it's worth, I am using something like the following at the start of each of my integration tests.
The intent (keeping in mind that I am still learning Rust) is that the first test will spin up the new server (successfully) on the specified I use I think it is way cool that, when the tests exit, and the spawned thread is terminated, the server shuts down gracefully and I don't have to wait for the socket to timeout before I can use it again. Nice job tiny-http author(s) and/or Rust! |
Beta Was this translation helpful? Give feedback.
-
I use some https://gist.github.com/kolbma/b8bd787568e543ccaf7abe7b5ba1b8ee |
Beta Was this translation helpful? Give feedback.
-
Are there any examples of performing integration tests with tiny_http? I have the start of a project basically running... it serves 3 or 4 pages the way I want. But now I want to refactor my code, add new pages, etc.. .and I would like to ensure that nothing that is working now changes (from the outside looking in). Do you have any suggestions as to how I might do this?
--wpd
Beta Was this translation helpful? Give feedback.
All reactions