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:
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)