Method Pause/Resume for Downloader.

This commit is contained in:
Andrey Smirnov
2014-01-14 14:11:28 +04:00
parent e63bbe839b
commit 7afcc93507
3 changed files with 38 additions and 0 deletions
+8
View File
@@ -45,6 +45,14 @@ func (s *DownloaderSuite) TestStartupShutdown(c *C) {
}
}
func (s *DownloaderSuite) TestPauseResume(c *C) {
d := NewDownloader(2)
defer d.Shutdown()
d.Pause()
d.Resume()
}
func (s *DownloaderSuite) TestDownloadOK(c *C) {
d := NewDownloader(2)
defer d.Shutdown()