Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor test tweak
  • Loading branch information
tbranyen committed Feb 7, 2015
commit 2094b51f4d772bb523a5168fa8120da63b97e082
10 changes: 2 additions & 8 deletions test/tests/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,9 @@ describe("Remote", function() {
it("can download from a remote", function() {
var repo = this.repository;

return Remote.load(repo, "origin")
.then(function(remote) {
return Remote.load(repo, "origin").then(function(remote) {
remote.connect(NodeGit.Enums.DIRECTION.FETCH);
return remote.download();
})
.then(function() {
assert(true);
}, function() {
assert(false);
});
});

Expand All @@ -114,7 +108,7 @@ describe("Remote", function() {
it("can fetch from all remotes", function() {
// Set a reasonable timeout here for the fetchAll test
this.timeout(15000);

return this.repository.fetchAll({
credentials: function(url, userName) {
return NodeGit.Cred.sshKeyFromAgent(userName);
Expand Down