Fix incorrect creation of directory while downloading.

This commit is contained in:
Andrey Smirnov
2013-12-17 21:22:50 +04:00
parent 151a4acfa7
commit e0e4b74c58
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -73,8 +73,8 @@ func (s *DownloaderSuite) TestDownloadFileError(c *C) {
d := NewDownloader(2)
defer d.Shutdown()
res := <-d.Download("http://smira.ru/", "/no/such/file")
c.Assert(res, ErrorMatches, ".*no such file or directory")
res := <-d.Download("http://smira.ru/", "/")
c.Assert(res, ErrorMatches, ".*permission denied")
}
func (s *DownloaderSuite) TestDownloadTemp(c *C) {