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:
authorWill Chandler <wchandler@gitlab.com>2024-01-18 00:57:51 +0300
committerGitLab <noreply@gitlab.com>2024-01-18 00:57:51 +0300
commit72faf14d9551b706f46103d665d75099ea8b1b0c (patch)
tree85abb862a6a39219643585785869aa626964cffb /internal/limiter/resizable_semaphore_test.go
parent2f1b99e352ec5c4e270e7ecb9e4234244bf37dee (diff)
parent36339ff6300a2cc727441aa897e2793bd2fcd98a (diff)
Merge branch 'xx/fix-typos' into 'master'
fix: Fix a collection of typos found by typos-cli See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6594 Merged-by: Will Chandler <wchandler@gitlab.com> Approved-by: Evan Read <eread@gitlab.com> Co-authored-by: Xing Xin <xingxin.xx@bytedance.com>
Diffstat (limited to 'internal/limiter/resizable_semaphore_test.go')
-rw-r--r--internal/limiter/resizable_semaphore_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/limiter/resizable_semaphore_test.go b/internal/limiter/resizable_semaphore_test.go
index 6c0e47df5..86921de6a 100644
--- a/internal/limiter/resizable_semaphore_test.go
+++ b/internal/limiter/resizable_semaphore_test.go
@@ -107,7 +107,7 @@ func testResizableSemaphoreCanceledWhenNotFull(t *testing.T, ctx context.Context
func testResizableSemaphoreCanceledWhenFull(t *testing.T, ctx context.Context, stopContext context.CancelFunc, expectedErr error) {
semaphore := NewResizableSemaphore(5)
- // Try to acquire a token of the empty sempahore
+ // Try to acquire a token of the empty semaphore
require.Nil(t, semaphore.TryAcquire())
semaphore.Release()
@@ -129,7 +129,7 @@ func testResizableSemaphoreCanceledWhenFull(t *testing.T, ctx context.Context, s
}
acquireWg1.Wait()
- // Another 5 waits for sempahore
+ // Another 5 waits for semaphore
var acquireWg2 sync.WaitGroup
for i := 0; i < 5; i++ {
acquireWg2.Add(1)