aboutsummaryrefslogtreecommitdiffstats
path: root/remote_test.go
diff options
context:
space:
mode:
authorXiang Xiujuan <52686173+xiujuan95@users.noreply.github.com>2021-04-21 19:00:26 +0800
committerGitHub <noreply@github.com>2021-04-21 13:00:26 +0200
commit67d34902b0c41ee5d6d283f4c5b6c2ad7db123fd (patch)
tree813f845c2eecbc57a284b9babcebedf724326f7f /remote_test.go
parent9618dbb80cfb6d862e531c4e1272d8280ce71e1d (diff)
downloadgo-git-67d34902b0c41ee5d6d283f4c5b6c2ad7db123fd.tar.gz
Remote: new ListContext function (#278)
Diffstat (limited to 'remote_test.go')
-rw-r--r--remote_test.go11
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"),