Skip to content

Commit

Permalink
fix to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hex0punk committed Aug 18, 2023
1 parent 10f9e60 commit 50f929f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/anonymous-race-condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ func AnonRaceCond_7_FP() {

func AnonRaceCond_8() {
var wg sync.WaitGroup
// ruleid: anonymous-race-condition
for _, num := range numbers {
// ruleid: anonymous-race-condition
for _, val := range values {
fmt.Println(num)
wg.Add(1)
Expand Down Expand Up @@ -294,8 +294,8 @@ func AnonRaceCond_9() {

func AnonRaceCond_9_FP() {
var wg sync.WaitGroup
// ruleid: anonymous-race-condition
for _, num := range numbers {
// ruleid: anonymous-race-condition
for _, val := range values {
fmt.Println(num)
wg.Add(1)
Expand Down

0 comments on commit 50f929f

Please sign in to comment.