Skip to content

Commit

Permalink
Fix concurrent map writes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcl committed Jul 18, 2024
1 parent 111501d commit fc6784f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration-tests/reorg/automation_reorg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"regexp"
"strconv"
"strings"
"sync"
"testing"
"time"

Expand Down Expand Up @@ -59,6 +60,7 @@ var (
},
},
}
mutex sync.Mutex
defaultOCRRegistryConfig = contracts.KeeperRegistrySettings{
PaymentPremiumPPB: uint32(200000000),
FlatFeeMicroLINK: uint32(0),
Expand Down Expand Up @@ -139,8 +141,10 @@ func TestAutomationReorg(t *testing.T) {
tomlConfig, err := actions.BuildTOMLNodeConfigForK8s(&config, network)
require.NoError(t, err, "Error building TOML config")

mutex.Lock()
defaultAutomationSettings["replicas"] = nodeCount
defaultAutomationSettings["toml"] = tomlConfig
mutex.Unlock()

var overrideFn = func(_ interface{}, target interface{}) {
ctf_config.MustConfigOverrideChainlinkVersion(config.GetChainlinkImageConfig(), target)
Expand Down

0 comments on commit fc6784f

Please sign in to comment.