EYBlockchain / nightfall_3

a mono-repo containing an optimistic version of nightfall
Creative Commons Zero v1.0 Universal
260 stars 57 forks source link

Use 'sinon' for fake timers in tests #1439

Open fullkomnun opened 1 year ago

fullkomnun commented 1 year ago

What does this implement/fix? Explain your changes.

Does this close any currently open issues?

Nope

What commands can I run to test the change?

Run 'periodic-payment-test' locally and/or in ci:

  1. NF_SERVICES_TO_START=blockchain,client,deployer,mongodb,optimist,rabbitmq,worker ./bin/setup-nightfall
  2. NF_SERVICES_TO_START=blockchain,client,deployer,mongodb,optimist,rabbitmq,worker CONFIRMATIONS=1 WHITELISTING=disable ./bin/start-nightfall -g -d [in another terminal]
  3. docker wait nightfall_3_deployer_1 (wait for deployer to finish)
  4. CONFIRMATIONS=1 npm run test-periodic-payment

Any other comments?