Skip to content

Commit 2e6bafb

Browse files
authored
Merge pull request #99 from eosnetworkfoundation/kayan_ws_fork_test
Websocket integration test for fork handling
2 parents e0698c5 + f21d4bd commit 2e6bafb

File tree

3 files changed

+1131
-0
lines changed

3 files changed

+1131
-0
lines changed

.github/workflows/node.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,32 @@ jobs:
374374
popd
375375
${{ steps.evm-node-build.outputs.EVM_NODE_BUILD }}/tests/nodeos_eos_evm_ws_test_basic.py -v --eos-evm-contract-root ${{ steps.evm-contract.outputs.EVM_CONTRACT }} --eos-evm-build-root ${{ steps.evm-node-build.outputs.EVM_NODE_BUILD }}
376376
377+
- name: Test Web-Socket Fork Handling
378+
run: |
379+
echo "=== current directory is $(pwd)==="
380+
apt-get install psmisc
381+
killall -9 nodeos || true
382+
killall -9 eos-evm-node || true
383+
killall -9 eos-evm-rpc || true
384+
sleep 1.0
385+
mkdir -p ws_test_run_root
386+
cd ws_test_run_root
387+
pip install --upgrade web3
388+
pip install otree
389+
pip install websocket-client
390+
pushd ${{ steps.evm-node-build.outputs.EVM_NODE_BUILD }}
391+
cd peripherals/eos-evm-ws-proxy
392+
npm install env
393+
npm install dotenv
394+
npm install winston
395+
npm install ws
396+
npm install uuid
397+
npm install axios
398+
npm install web3
399+
npm install collections
400+
popd
401+
${{ steps.evm-node-build.outputs.EVM_NODE_BUILD }}/tests/nodeos_eos_evm_ws_test_fork.py -v --eos-evm-contract-root ${{ steps.evm-contract.outputs.EVM_CONTRACT }} --eos-evm-build-root ${{ steps.evm-node-build.outputs.EVM_NODE_BUILD }}
402+
377403
- name: Prepare Logs
378404
if: failure()
379405
run: |

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ add_subdirectory( nodeos_eos_evm_server )
22

33
configure_file(antelope_name.py . COPYONLY)
44
configure_file(nodeos_eos_evm_ws_test_basic.py . COPYONLY)
5+
configure_file(nodeos_eos_evm_ws_test_fork.py . COPYONLY)
56
configure_file(nodeos_eos_evm_server.py . COPYONLY)
67
configure_file(nodeos_eos_evm_test.py . COPYONLY)

0 commit comments

Comments
 (0)