Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 863 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 863 Bytes

How to run integration tests for 11-Beefy


First run the relay chain & parachain nodes:


docker run -ti -p9944:9944 -p9988:9988 -p9998:9998 composablefi/composable-sandbox:latest

Then wait until you see this line:


🚀 POLKADOT LAUNCH COMPLETE 🚀

Now you can run the tests in ./11-beefy/types/update_test.go


go test -test.timeout=0 -run TestCheckHeaderAndUpdateState -v

You should start to see these lines:


==== connected! ==== 
====== subcribed! ======


Initializing client state


clientState.LatestBeefyHeight: 169
clientState.MmrRootHash: 89a2850e8b5e475980ca1ef4c145f4c5624a072d287b85f0430815d5c9b7b387
====== successfully processed justification! ======

This means the light client is following the relay chain consensus protocol