CirclesUBI / circles-contracts

Fully automated luxury gay space communism contracts
GNU Affero General Public License v3.0
73 stars 22 forks source link

One test fails sometimes only #141

Open llunaCreixent opened 2 years ago

llunaCreixent commented 2 years ago

Output after running all the tests:

1) Contract: UBI
       issuance
         returns the correct issuance after 1 period:

      AssertionError: expected '100000000000000000000' to equal '275000000000000000000'
      + expected - actual

      -100000000000000000000
      +275000000000000000000

      at Context.<anonymous> (test/1-UBI.js:62:50)
      at processTicksAndRejections (node:internal/process/task_queues:93:5)
Tobertet commented 2 years ago

I have run that test specifically 100 times in more or less 10 minutes. No error reported so far.

I couldn't dive deeper and my knowledge in circle is too little atm, but my thoughts are there may be some flakiness due to the increase function.

JacqueGM commented 2 years ago

@llunaCreixent I have not seen this happening again. Can I close it?

llunaCreixent commented 2 years ago

Yes!