Skip to content

Commit

Permalink
resourcesynccontroller: fix race in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Apr 22, 2020
1 parent ccc4bb2 commit 556325f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -81,9 +81,9 @@ func TestSyncSecret(t *testing.T) {
destinationSecretBarChecked = true
destinationSecretBarCheckedMutex.Unlock()
case "empty-source":
destinationSecretBarCheckedMutex.Lock()
destinationSecretEmptySourceCheckedMutex.Lock()
destinationSecretEmptySourceChecked = true
destinationSecretBarCheckedMutex.Unlock()
destinationSecretEmptySourceCheckedMutex.Unlock()
}
}
return false, nil, nil
Expand Down

0 comments on commit 556325f

Please sign in to comment.