Skip to content

Commit 7b594a7

Browse files
committed
Minor test tweak
1 parent ee41c34 commit 7b594a7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/tests/remote.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,9 @@ describe("Remote", function() {
9191
it("can download from a remote", function() {
9292
var repo = this.repository;
9393

94-
return Remote.load(repo, "origin")
95-
.then(function(remote) {
94+
return Remote.load(repo, "origin").then(function(remote) {
9695
remote.connect(NodeGit.Enums.DIRECTION.FETCH);
9796
return remote.download();
98-
})
99-
.then(function() {
100-
assert(true);
101-
}, function() {
102-
assert(false);
10397
});
10498
});
10599

@@ -114,7 +108,7 @@ describe("Remote", function() {
114108
it("can fetch from all remotes", function() {
115109
// Set a reasonable timeout here for the fetchAll test
116110
this.timeout(15000);
117-
111+
118112
return this.repository.fetchAll({
119113
credentials: function(url, userName) {
120114
return NodeGit.Cred.sshKeyFromAgent(userName);

0 commit comments

Comments
 (0)