Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXing Xin <xingxin.xx@bytedance.com>2024-01-02 06:10:48 +0300
committerWill Chandler <wchandler@gitlab.com>2024-01-17 22:12:43 +0300
commit36339ff6300a2cc727441aa897e2793bd2fcd98a (patch)
tree85abb862a6a39219643585785869aa626964cffb /internal/praefect/reconciler/reconciler_test.go
parent2f1b99e352ec5c4e270e7ecb9e4234244bf37dee (diff)
fix: Fix a collection of typos found by typos-cli
Fix typos found by typos-cli(https://github.com/crate-ci/typos). Some affected tests are adjusted. There are a bunch of other typos are ignored, including * CHANGELOG.md * NOTICE * internal/.../migrations/20201208163237_cleanup_notifications_payload.go * other intended typos or false positives Signed-off-by: Xing Xin <xingxin.xx@bytedance.com>
Diffstat (limited to 'internal/praefect/reconciler/reconciler_test.go')
-rw-r--r--internal/praefect/reconciler/reconciler_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/praefect/reconciler/reconciler_test.go b/internal/praefect/reconciler/reconciler_test.go
index 230447d88..10b06b709 100644
--- a/internal/praefect/reconciler/reconciler_test.go
+++ b/internal/praefect/reconciler/reconciler_test.go
@@ -1055,16 +1055,16 @@ func TestReconciler(t *testing.T) {
t.Helper()
runCtx, cancelRun := context.WithCancel(ctx)
- var stopped, resetted bool
+ var stopped, reset bool
ticker := helper.NewManualTicker()
ticker.StopFunc = func() { stopped = true }
ticker.ResetFunc = func() {
- if resetted {
+ if reset {
cancelRun()
return
}
- resetted = true
+ reset = true
ticker.Tick()
}
@@ -1079,7 +1079,7 @@ func TestReconciler(t *testing.T) {
require.Equal(t, context.Canceled, reconciler.Run(runCtx, ticker))
require.True(t, stopped)
- require.True(t, resetted)
+ require.True(t, reset)
}
for vs, repos := range tc.deletedRepositories {