Fix unit-tests

Go 1.5 has different error message, randomize port number in test to avoid
collisions.
This commit is contained in:
Andrey Smirnov
2015-09-22 11:18:57 +03:00
parent b95b3473bf
commit 84801bce78
2 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func (s *RemoteRepoSuite) TearDownTest(c *C) {
func (s *RemoteRepoSuite) TestInvalidURL(c *C) {
_, err := NewRemoteRepo("s", "http://lolo%2", "squeeze", []string{"main"}, []string{}, false, false)
c.Assert(err, ErrorMatches, ".*hexadecimal escape in host.*")
c.Assert(err, ErrorMatches, ".*(hexadecimal escape|percent-encoded characters) in host.*")
}
func (s *RemoteRepoSuite) TestFlatCreation(c *C) {