Skip to content

Commit f5d7b6c

Browse files
Shubham HibareShubham Hibare
authored andcommitted
feat: cache per owner installation tokens + retry improvements
1 parent b96e685 commit f5d7b6c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/clients/github/client_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,7 @@ func TestGetContents_RepoOutsideInstallationScope(t *testing.T) {
663663
client.installations.set("example-org", 12345)
664664

665665
_, err := c.GetContents(t.Context(), "example-org/excluded-repo", ".github/trust-policy.yaml")
666-
require.Error(t, err)
667-
assert.ErrorIs(t, err, ErrRepositoryNotFound)
666+
require.ErrorIs(t, err, ErrRepositoryNotFound)
668667
assert.Equal(t, int32(0), installationLookups.Load(), "warm installation cache should skip lookup")
669668
}
670669

0 commit comments

Comments
 (0)