Skip to content

Commit

Permalink
move const outside test case
Browse files Browse the repository at this point in the history
Signed-off-by: Sammy Oina <[email protected]>
  • Loading branch information
SammyOina committed Nov 18, 2024
1 parent 1ef03ba commit acd0092
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manager/vm/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"github.com/ultravioletrs/cocos/pkg/manager"
)

const numGoroutines = 10

func TestNewStateMachine(t *testing.T) {
tests := []struct {
name string
Expand Down Expand Up @@ -139,7 +141,6 @@ func TestStateMachineConcurrency(t *testing.T) {

sm := NewStateMachine()
var wg sync.WaitGroup
const numGoroutines = 10

wg.Add(numGoroutines)
for i := 0; i < numGoroutines; i++ {
Expand Down

0 comments on commit acd0092

Please sign in to comment.