Exercise 3.links, bug fix

Hello everyone,

i encountered an error feedback when i tested this exercise. Code was good, but still had this bug :

not ok 8 should be strictly equal

operator: equal
expected: 2
actual:   0
at: <anonymous> (/home/gregory/developer-exercises/1.basic/3.links/exercise/tests/src/index.ts:115:7)
stack: |-
  Error: should be strictly equal
      at Test.assert [as _assert] (/home/gregory/developer-exercises/1.basic/3.links/exercise/tests/node_modules/tape/lib/test.js:304:54)
      at Test.bound [as _assert] (/home/gregory/developer-exercises/1.basic/3.links/exercise/tests/node_modules/tape/lib/test.js:91:32)
      at Test.strictEqual (/home/gregory/developer-exercises/1.basic/3.links/exercise/tests/node_modules/tape/lib/test.js:468:10)
      at Test.bound (/home/gregory/developer-exercises/1.basic/3.links/exercise/tests/node_modules/tape/lib/test.js:91:32)
      at /home/gregory/developer-exercises/1.basic/3.links/exercise/tests/src/index.ts:115:7
      at step (/home/gregory/developer-exercises/1.basic/3.links/exercise/tests/src/index.ts:33:23)
      at Object.next (/home/gregory/developer-exercises/1.basic/3.links/exercise/tests/src/index.ts:14:53)
      at fulfilled (/home/gregory/developer-exercises/1.basic/3.links/exercise/tests/src/index.ts:5:58)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)


11:11:03 [tryorama] info: conductor ‘c0’ exited with code null
FIXME: ignoring onLeave

I found it came from a too short await time in

developer-exercises/1.basic/3.links/exercise/tests/src/index.ts:62:17
and
developer-exercises/1.basic/3.links/exercise/tests/src/index.ts:100:17

i turned it from

await sleep(100);
to
await sleep(2000);

and then it worked

1 Like

Awesome! Would you be up for putting up a PR for this?

A PR? I don’t know what it is, but sure I’d be up.

1 Like