From 25dc7f3c3d2e1cdc722b8520ad36b16b1ddaf9bc Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Mon, 13 Nov 2023 21:43:16 +0100
Subject: [PATCH] fix(#132): fix E2E tests: add `--reserved-only` option

---
 end2end-tests/tests/common/mod.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/end2end-tests/tests/common/mod.rs b/end2end-tests/tests/common/mod.rs
index 983274ca4..b9b4a1e09 100644
--- a/end2end-tests/tests/common/mod.rs
+++ b/end2end-tests/tests/common/mod.rs
@@ -135,6 +135,8 @@ pub async fn spawn_node(
                 "--rpc-cors=all",
                 "--alice",
                 "--tmp",
+                // Fix: End2End test may fail due to network discovery. This option disables automatic peer discovery.Ï€
+                "--reserved-only",
             ],
             &duniter_binary_path,
             maybe_genesis_conf_file,
-- 
GitLab