(t *testing.T)
| 921 | } |
| 922 | |
| 923 | func TestWithFreshConfigUnderLockPropagatesError(t *testing.T) { |
| 924 | authCfg := newTestAuthConfig(t) |
| 925 | sentinel := errors.New("boom") |
| 926 | |
| 927 | err := authCfg.withFreshConfigForRefresh(func(lockErr error) error { return sentinel }) |
| 928 | |
| 929 | require.ErrorIs(t, err, sentinel) |
| 930 | } |
| 931 | |
| 932 | func TestFlockRefreshLockCreatesMissingDirectory(t *testing.T) { |
| 933 | path := filepath.Join(t.TempDir(), "state", "gh", refreshLockFile) |
nothing calls this directly
no test coverage detected