Spellcheck all files

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
This commit is contained in:
InsanePrawn
2020-02-23 23:24:12 +01:00
committed by Christian Schwarz
parent 94caf8b8db
commit 44bd354eae
60 changed files with 118 additions and 117 deletions

View File

@ -20,7 +20,7 @@ func TestSemaphore(t *testing.T) {
sem := New(concurrentSemaphore)
var aquisitions struct {
var acquisitions struct {
beforeT, afterT uint32
}
@ -33,9 +33,9 @@ func TestSemaphore(t *testing.T) {
require.NoError(t, err)
defer res.Release()
if time.Since(begin) > sleepTime {
atomic.AddUint32(&aquisitions.beforeT, 1)
atomic.AddUint32(&acquisitions.beforeT, 1)
} else {
atomic.AddUint32(&aquisitions.afterT, 1)
atomic.AddUint32(&acquisitions.afterT, 1)
}
time.Sleep(sleepTime)
}()
@ -43,7 +43,7 @@ func TestSemaphore(t *testing.T) {
wg.Wait()
assert.True(t, aquisitions.beforeT == concurrentSemaphore)
assert.True(t, aquisitions.afterT == numGoroutines-concurrentSemaphore)
assert.True(t, acquisitions.beforeT == concurrentSemaphore)
assert.True(t, acquisitions.afterT == numGoroutines-concurrentSemaphore)
}