Skip to content

Commit

Permalink
Merge pull request #830 from gravitational/sasha/ttl
Browse files Browse the repository at this point in the history
fix retrieval TTL
  • Loading branch information
klizhentas authored Mar 12, 2017
2 parents 0a8741e + 9141f94 commit 52d097d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/services/local/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,11 @@ func (s *IdentityService) GetOIDCConnectors(withSecrets bool) ([]services.OIDCCo
for _, id := range connectorIDs {
connector, err := s.GetOIDCConnector(id, withSecrets)
if err != nil {
return nil, trace.Wrap(err)
if !trace.IsNotFound(err) {
return nil, trace.Wrap(err)
}
// the record has expired
continue
}
connectors = append(connectors, connector)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/timeout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *TimeoutSuite) TearDownSuite(c *check.C) {

func (s *TimeoutSuite) TestSlowOperation(c *check.C) {
client := newClient(time.Millisecond * 5)
_, err := client.Get(s.server.URL + "/slow?delay=10ms")
_, err := client.Get(s.server.URL + "/slow?delay=20ms")
// must fail with I/O timeout
c.Assert(err, check.NotNil)
c.Assert(err.Error(), check.Matches, "^.*i/o timeout$")
Expand Down

0 comments on commit 52d097d

Please sign in to comment.