MCPcopy Create free account
hub / github.com/cli/cli / TestWithFreshConfigUnderLockPropagatesError

Function TestWithFreshConfigUnderLockPropagatesError

internal/config/refreshable_test.go:923–930  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

921}
922
923func 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
932func TestFlockRefreshLockCreatesMissingDirectory(t *testing.T) {
933 path := filepath.Join(t.TempDir(), "state", "gh", refreshLockFile)

Callers

nothing calls this directly

Calls 2

newTestAuthConfigFunction · 0.85

Tested by

no test coverage detected