Skip to content

Commit

Permalink
Testing against github urls
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-nguyen committed Jun 16, 2018
1 parent ae88395 commit 5cde779
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions daemon/inertiad/project/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,18 @@ func TestGetBranch(t *testing.T) {
}

func TestCompareRemotes(t *testing.T) {
// Traverse back down to root directory of repository
// repo, err := git.PlainOpen("../../../")
// assert.Nil(t, err)
urlVariations := []string{
"https://github.com/ubclaunchpad/inertia.git",
"git://github.com/ubclaunchpad/inertia.git",
}

// deployment := &Deployment{repo: repo}
// Traverse back down to root directory of repository
repo, err := git.PlainOpen("../../../")
assert.Nil(t, err)

// for _, url := range urlVariations {
// err = deployment.CompareRemotes(url)
// assert.Nil(t, err)
// }
deployment := &Deployment{repo: repo}
for _, url := range urlVariations {
err = deployment.CompareRemotes(url)
assert.Nil(t, err)
}
}

0 comments on commit 5cde779

Please sign in to comment.