how to use the simulator to inject error #157
-
Hi, I'm using madsim 0.2.22,I am trying to inject some error to my project, (like some network error), but I don't know how to do. I already replace tokio with madsim-tokio,how can I inject some error then? thanks for your help! |
Beta Was this translation helpful? Give feedback.
Answered by
wangrunji0408
Jul 6, 2023
Replies: 1 comment
-
Hi. To use the simulator, you first need to setup a virtual cluster in your test, for which you can refer to tonic-example. After that you can call APIs in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lyc200150
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. To use the simulator, you first need to setup a virtual cluster in your test, for which you can refer to tonic-example. After that you can call APIs in
NetSim
to inject errors, including blocking links, setting latencies etc.