Nodegit: Tests fail on MacOS Sierra

Created on 30 Nov 2016  路  4Comments  路  Source: nodegit/nodegit

Master branch fails testing on MacOS Sierra:

2 failing:

1) Clone can clone with ssh:
    Error: timeout of 30000ms exceeded. Ensure the done() callback is being called in this test.

2) Remote can reject fetching from private repository without valid credentials:

    AssertionError: Should not be able to find repository.
      + expected - actual

    -Callback failed to initialize SSH credentials
    +ERROR: Repository not found.

    at test/tests/remote.js:245:18
    at tryCallOne (node_modules/nodegit-promise/lib/core.js:37:12)
    at node_modules/nodegit-promise/lib/core.js:103:15
    at flush (node_modules/asap/raw.js:50:29)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Most helpful comment

@DinkDonk I found the solution. For me, enough to run the command ssh-add to add the SSH key to the ssh-agent.

All 4 comments

I have the same problem.

  288 passing (3m)
  4 pending
  2 failing

  1) Clone can clone with ssh:
     Error: timeout of 30000ms exceeded. Ensure the done() callback is being called in this test.


  2) Remote can reject fetching from private repository without valid credentials:

      AssertionError: Should not be able to find repository.
      + expected - actual

      -Callback failed to initialize SSH credentials
      +ERROR: Repository not found.

      at test/tests/remote.js:245:18
      at tryCallOne (node_modules/nodegit-promise/lib/core.js:37:12)
      at node_modules/nodegit-promise/lib/core.js:103:15
      at flush (node_modules/asap/raw.js:50:29)
      at _combinedTickCallback (internal/process/next_tick.js:67:7)
      at process._tickCallback (internal/process/next_tick.js:98:9)

@DinkDonk I found the solution. For me, enough to run the command ssh-add to add the SSH key to the ssh-agent.

I had the same result on Linux. For me it started working after I added private and pub key under ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub respectively.

Closing this as resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

petemill picture petemill  路  3Comments

seokju-na picture seokju-na  路  4Comments

getify picture getify  路  6Comments

monkeyboy64 picture monkeyboy64  路  7Comments

mklueh picture mklueh  路  5Comments