diff options
Diffstat (limited to 'remote_test.go')
-rw-r--r-- | remote_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/remote_test.go b/remote_test.go index 38f17ad..b39f5df 100644 --- a/remote_test.go +++ b/remote_test.go @@ -944,6 +944,17 @@ func (s *RemoteSuite) TestList(c *C) { } } +func (s *RemoteSuite) TestListTimeout(c *C) { + remote := NewRemote(memory.NewStorage(), &config.RemoteConfig{ + Name: DefaultRemoteName, + URLs: []string{"https://deelay.me/60000/https://httpstat.us/503"}, + }) + + _, err := remote.List(&ListOptions{}) + + c.Assert(err, NotNil) +} + func (s *RemoteSuite) TestUpdateShallows(c *C) { hashes := []plumbing.Hash{ plumbing.NewHash("0000000000000000000000000000000000000001"), |