Skip to content

Commit 6580ecb

Browse files
committed
Fix submodule test
Increase timeout, use a nodegit test repo, and pass oid instead of object returned by peel
1 parent f4c39d7 commit 6580ecb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/tests/submodule.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ describe("Submodule", function() {
107107
});
108108

109109
it("can setup and finalize submodule add", function() {
110+
this.timeout(30000);
111+
110112
var repo = this.repository;
111-
var submodulePath = "hellogitworld";
112-
var submoduleUrl = "https://github.com/githubtraining/hellogitworld.git";
113+
var submodulePath = "nodegittest";
114+
var submoduleUrl = "https://github.com/nodegit/test.git";
113115

114116
var submodule;
115117
var submoduleRepo;
@@ -134,7 +136,7 @@ describe("Submodule", function() {
134136
return reference.peel(NodeGit.Object.TYPE.COMMIT);
135137
})
136138
.then(function(commit) {
137-
return submoduleRepo.createBranch("master", commit);
139+
return submoduleRepo.createBranch("master", commit.id());
138140
})
139141
.then(function() {
140142
return submodule.addFinalize();

0 commit comments

Comments
 (0)