Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blindpirate committed Mar 5, 2017
1 parent bdfd22f commit 30e49ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected Optional<GolangPackage> doProduce(String packagePath) {
.withPath(packagePath)
.withRootPath(toUnixString(rootPath))
.withVcsType(VcsType.GIT)
.withUrl(HTTPS + rootPath)
.withUrl(HTTPS + toUnixString(rootPath))
.build();
return Optional.of(pkg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ class GitMercurialNotationDependencyTest {

@Test
void 'toString should succeed'() {
assert dependency.toString() == "GitMercurialNotationDependency{name='github.com/a/b', commit='commitId'}"
assert dependency.toString() == "GitNotationDependency{name='github.com/a/b', commit='commitId'}"
dependency.url = 'https://github.com/a/b.git'
assert dependency.toString() == "GitMercurialNotationDependency{name='github.com/a/b', commit='commitId', url='https://github.com/a/b.git'}"
assert dependency.toString() == "GitNotationDependency{name='github.com/a/b', commit='commitId', url='https://github.com/a/b.git'}"
dependency.tag = '1.0.0'
assert dependency.toString() == "GitMercurialNotationDependency{name='github.com/a/b', commit='commitId', tag='1.0.0', url='https://github.com/a/b.git'}"
assert dependency.toString() == "GitNotationDependency{name='github.com/a/b', commit='commitId', tag='1.0.0', url='https://github.com/a/b.git'}"
}

@Test
Expand Down

0 comments on commit 30e49ec

Please sign in to comment.