mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
add peer switch back integration test 02
This commit is contained in:
parent
2391eef7d6
commit
4f1f021ede
2 changed files with 20 additions and 0 deletions
1
eth/test/tests/02.chain
Symbolic link
1
eth/test/tests/02.chain
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../chains/01.chain
|
||||
19
eth/test/tests/02.sh
Normal file
19
eth/test/tests/02.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
TIMEOUT=6
|
||||
|
||||
cat >> $JSFILE <<EOF
|
||||
eth.addPeer("localhost:30311");
|
||||
sleep(200);
|
||||
eth.addPeer("localhost:30312");
|
||||
sleep(3000);
|
||||
eth.export("$CHAIN_TEST");
|
||||
EOF
|
||||
|
||||
peer 11 01
|
||||
peer 12 02
|
||||
P13ID=$PID
|
||||
test_node $NAME "" -loglevel 5 $JSFILE
|
||||
sleep 0.5
|
||||
kill $P13ID
|
||||
|
||||
Loading…
Reference in a new issue