Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Jitter for maxJobs option
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Plakhotnikov <embargo2710@gmail.com>
  • Loading branch information
Kaspiman committed Mar 11, 2024
1 parent 0b7300a commit 8f4fd4e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions ipc/socket/socket_factory_spawn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,7 @@ func Benchmark_Tcp_SpawnWorker_Stop2(b *testing.B) {
if assert.NoError(b, err) {
defer func() {
errC := ls.Close()
if errC != nil {
b.Errorf("error closing the listener: error %v", err)
}
require.NoError(b, errC)
}()
} else {
b.Skip("socket is busy")
Expand Down Expand Up @@ -433,9 +431,7 @@ func Benchmark_Tcp_Worker_ExecEcho2(b *testing.B) {
if assert.NoError(b, err) {
defer func() {
errC := ls.Close()
if errC != nil {
b.Errorf("error closing the listener: error %v", err)
}
require.NoError(b, errC)
}()
} else {
b.Skip("socket is busy")
Expand Down Expand Up @@ -469,9 +465,7 @@ func Benchmark_Unix_SpawnWorker_Stop2(b *testing.B) {
if err == nil {
defer func() {
errC := ls.Close()
if errC != nil {
b.Errorf("error closing the listener: error %v", err)
}
require.NoError(b, errC)
}()
} else {
b.Skip("socket is busy")
Expand All @@ -497,9 +491,7 @@ func Benchmark_Unix_Worker_ExecEcho2(b *testing.B) {
if err == nil {
defer func() {
errC := ls.Close()
if errC != nil {
b.Errorf("error closing the listener: error %v", err)
}
require.NoError(b, errC)
}()
} else {
b.Skip("socket is busy")
Expand Down

0 comments on commit 8f4fd4e

Please sign in to comment.