fix typo (#4599)
I misspelled an identifier in one spot and then just autocompleted to victory everywhere else. This commit fixes the typo!
This commit is contained in:
@@ -453,7 +453,7 @@ func run(state overseer.State) {
|
||||
}
|
||||
|
||||
if gitCloneTimeout != nil {
|
||||
feature.GitGloneTimeoutDuration.Store(int64(*gitCloneTimeout))
|
||||
feature.GitCloneTimeoutDuration.Store(int64(*gitCloneTimeout))
|
||||
}
|
||||
|
||||
if *skipAdditionalRefs {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
var (
|
||||
ForceSkipBinaries atomic.Bool
|
||||
ForceSkipArchives atomic.Bool
|
||||
GitGloneTimeoutDuration atomic.Int64
|
||||
GitCloneTimeoutDuration atomic.Int64
|
||||
SkipAdditionalRefs atomic.Bool
|
||||
EnableAPKHandler atomic.Bool
|
||||
UserAgentSuffix AtomicString
|
||||
|
||||
@@ -474,7 +474,7 @@ func CloneRepo(ctx context.Context, userInfo *url.Userinfo, gitURL string, clone
|
||||
}
|
||||
}
|
||||
|
||||
timeout := time.Duration(feature.GitGloneTimeoutDuration.Load())
|
||||
timeout := time.Duration(feature.GitCloneTimeoutDuration.Load())
|
||||
|
||||
repo, err := executeClone(ctx, cloneParams{userInfo, gitURL, args, path, authInUrl, timeout})
|
||||
if err != nil {
|
||||
|
||||
@@ -43,8 +43,8 @@ func TestClone_Timeout(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("a clone that times out should time out", func(t *testing.T) {
|
||||
feature.GitGloneTimeoutDuration.Store(int64(1 * time.Nanosecond))
|
||||
t.Cleanup(func() { feature.GitGloneTimeoutDuration.Store(0) })
|
||||
feature.GitCloneTimeoutDuration.Store(int64(1 * time.Nanosecond))
|
||||
t.Cleanup(func() { feature.GitCloneTimeoutDuration.Store(0) })
|
||||
|
||||
_, _, err := CloneRepo(
|
||||
ctx,
|
||||
|
||||
Reference in New Issue
Block a user