We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setup_server
1 parent 7960f67 commit 9cae5c5Copy full SHA for 9cae5c5
mithril-common/src/chain_observer/pallas_observer.rs
@@ -602,7 +602,11 @@ mod tests {
602
TempDir::create_with_short_path("pallas_chain_observer_test", folder_name)
603
}
604
605
- /// Sets up a mock server.
+ /// Sets up a mock server for related tests.
606
+ ///
607
+ /// Use the `intersections` parameter to define exactly how many
608
+ /// local state queries should be intersepted by the `mock_server`
609
+ /// and avoid any panic errors.
610
async fn setup_server(socket_path: PathBuf, intersections: u32) -> tokio::task::JoinHandle<()> {
611
tokio::spawn({
612
async move {
0 commit comments