(t *testing.T)
| 760 | } |
| 761 | |
| 762 | func TestWithFreshConfigUnderLockPropagatesError(t *testing.T) { |
| 763 | authCfg := newTestAuthConfig(t) |
| 764 | sentinel := errors.New("boom") |
| 765 | |
| 766 | err := authCfg.withFreshConfigForRefresh(func(lockErr error) error { return sentinel }) |
| 767 | |
| 768 | require.ErrorIs(t, err, sentinel) |
| 769 | } |
| 770 | |
| 771 | func TestFlockRefreshLockCreatesMissingDirectory(t *testing.T) { |
| 772 | path := filepath.Join(t.TempDir(), "state", "gh", refreshLockFile) |
nothing calls this directly
no test coverage detected