Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.

Commit

Permalink
Test more probative URL in TestUnreachableSource
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Apr 4, 2017
1 parent d59d8a6 commit 5aeb5e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,12 +785,15 @@ func TestSignalHandling(t *testing.T) {
func TestUnreachableSource(t *testing.T) {
// If a git remote is unreachable (maybe the server is only accessible behind a VPN, or
// something), we should return a clear error, not a panic.
if testing.Short() {
t.Skip("Skipping slow test in short mode")
}

sm, clean := mkNaiveSM(t)
defer clean()

id := mkPI("golang.org/notareal/repo").normalize()
_, err := sm.ListVersions(id)
id = mkPI("github.com/golang/notexist").normalize()
err = sm.SyncSourceFor(id)
if err == nil {
t.Error("expected err when listing versions of a bogus source, but got nil")
}
Expand Down

0 comments on commit 5aeb5e8

Please sign in to comment.