ledgerloops / jerboa

A state-driven Ledger Loops node in TypeScript. Successor of strategies in https://github.com/ledgerloops/strategy-pit
Apache License 2.0
1 stars 0 forks source link

Node 5 received Nack from 26 for probe 5-1:0 but current probe is undefined} #46

Closed michielbdejong closed 1 month ago

michielbdejong commented 1 month ago

needs some debugging deep-dive, tomorrow.

michielbdejong commented 1 month ago
$ VERBOSE=1 node --experimental-vm-modules ./node_modules/jest/bin/jest.js __tests__/SingleThread.test.ts > issue-46.txt
(node:20915) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
FAIL __tests__/SingleThread.test.ts
  SingleThread
    ✕ finds loops (2809 ms)

  ● SingleThread › finds loops

    expect(received).toEqual(expected) // deep equality

    Expected: 31
    Received: 77

       8 |     const threadRunner = new SingleThread({ sarafuFile: SARAFU_CSV, numWorkers: 1 });
       9 |     const finalProbeId = await threadRunner.runAllWorkers();
    > 10 |     expect(finalProbeId).toEqual(31);
         |                          ^
      11 |     expect(await threadRunner.solutionIsComplete()).toEqual(true);
      12 |   });
      13 | });

      at Object.<anonymous> (__tests__/SingleThread.test.ts:10:26)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 total
Snapshots:   0 total
Time:        4.054 s
Ran all test suites matching /__tests__\/SingleThread.test.ts/i.