1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
11 check "gopkg.in/check.v1"
14 var _ = check.Suite(&KeepServiceSuite{})
16 type KeepServiceSuite struct{}
18 func (*KeepServiceSuite) TestIndexTimeout(c *check.C) {
21 Transport: &timeoutTransport{response: []byte("\n")},
23 APIHost: "zzzzz.arvadosapi.com",
26 _, err := (&KeepService{}).IndexMount(context.Background(), client, "fake", "")
27 c.Check(err, check.ErrorMatches, `.*timeout.*`)