Skip to content

Commit 05f3493

Browse files
Stephanie Wehnerclaude
andcommitted
Fix missing sleep between node launches in nativeMode examples
Without a sleep, the second node tries to connect to the first node's classical server before it is ready, causing the connection to fail. Matches the pattern already used correctly in graphState. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d721c96 commit 05f3493

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

examples/nativeMode/corrRNG/run.sh

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ ! -f ~/.simulaqron_pids/simulaqron_network_default.pid ]; then
1010
fi
1111

1212
python3 bobTest.py &
13+
sleep 1
1314
python3 aliceTest.py
1415

1516

examples/nativeMode/extendGHZ/run.sh

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ if [ ! -f ~/.simulaqron_pids/simulaqron_network_default.pid ]; then
1010
fi
1111

1212
python3 bobTest.py &
13+
sleep 1
1314
python3 charlieTest.py &
15+
sleep 1
1416
python3 aliceTest.py
1517

1618

examples/nativeMode/teleport/run.sh

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ ! -f ~/.simulaqron_pids/simulaqron_network_default.pid ]; then
1010
fi
1111

1212
python3 bobTest.py &
13+
sleep 1
1314
python3 aliceTest.py
1415

1516

examples/nativeMode/template/run.sh

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ fi
1414

1515
# Run the files for Alice, Bob or whatever nodes you construct
1616
python3 bobTest.py &
17+
sleep 1
1718
python3 aliceTest.py

0 commit comments

Comments
 (0)