Skip to content

Commit

Permalink
update common for mailbox.Monitor name fix (#11593)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Dec 19, 2023
1 parent bf31131 commit 0e5b219
Show file tree
Hide file tree
Showing 23 changed files with 59 additions and 54 deletions.
5 changes: 2 additions & 3 deletions core/chains/evm/headtracker/head_broadcaster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import (

"github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"

"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"
commonhtrk "github.com/smartcontractkit/chainlink/v2/common/headtracker"
commonmocks "github.com/smartcontractkit/chainlink/v2/common/types/mocks"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/headtracker"
Expand Down Expand Up @@ -73,7 +72,7 @@ func TestHeadBroadcaster_Subscribe(t *testing.T) {

orm := headtracker.NewORM(db, logger, cfg.Database(), *ethClient.ConfiguredChainID())
hs := headtracker.NewHeadSaver(logger, orm, evmCfg.EVM(), evmCfg.EVM().HeadTracker())
mailMon := mailbox.NewMonitor(t.Name())
mailMon := mailboxtest.NewMonitor(t)
servicetest.Run(t, mailMon)
hb := headtracker.NewHeadBroadcaster(logger)
servicetest.Run(t, hb)
Expand Down
7 changes: 4 additions & 3 deletions core/chains/evm/headtracker/head_tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/services"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

commonmocks "github.com/smartcontractkit/chainlink/v2/common/types/mocks"
evmclient "github.com/smartcontractkit/chainlink/v2/core/chains/evm/client"
Expand Down Expand Up @@ -994,7 +995,7 @@ func createHeadTracker(t *testing.T, ethClient evmclient.Client, config headtrac
lggr := logger.Test(t)
hb := headtracker.NewHeadBroadcaster(lggr)
hs := headtracker.NewHeadSaver(lggr, orm, config, htConfig)
mailMon := mailbox.NewMonitor(t.Name())
mailMon := mailboxtest.NewMonitor(t)
return &headTrackerUniverse{
mu: new(sync.Mutex),
headTracker: headtracker.NewHeadTracker(lggr, ethClient, config, htConfig, hb, hs, mailMon),
Expand All @@ -1009,7 +1010,7 @@ func createHeadTrackerWithNeverSleeper(t *testing.T, ethClient evmclient.Client,
lggr := logger.Test(t)
hb := headtracker.NewHeadBroadcaster(lggr)
hs := headtracker.NewHeadSaver(lggr, orm, evmcfg.EVM(), evmcfg.EVM().HeadTracker())
mailMon := mailbox.NewMonitor(t.Name())
mailMon := mailboxtest.NewMonitor(t)
ht := headtracker.NewHeadTracker(lggr, ethClient, evmcfg.EVM(), evmcfg.EVM().HeadTracker(), hb, hs, mailMon)
_, err := hs.Load(testutils.Context(t))
require.NoError(t, err)
Expand All @@ -1027,7 +1028,7 @@ func createHeadTrackerWithChecker(t *testing.T, ethClient evmclient.Client, conf
hb := headtracker.NewHeadBroadcaster(lggr)
hs := headtracker.NewHeadSaver(lggr, orm, config, htConfig)
hb.Subscribe(checker)
mailMon := mailbox.NewMonitor(t.Name())
mailMon := mailboxtest.NewMonitor(t)
ht := headtracker.NewHeadTracker(lggr, ethClient, config, htConfig, hb, hs, mailMon)
return &headTrackerUniverse{
mu: new(sync.Mutex),
Expand Down
4 changes: 2 additions & 2 deletions core/chains/evm/log/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

evmclient "github.com/smartcontractkit/chainlink/v2/core/chains/evm/client"
evmclimocks "github.com/smartcontractkit/chainlink/v2/core/chains/evm/client/mocks"
Expand Down Expand Up @@ -90,7 +90,7 @@ func newBroadcasterHelperWithEthClient(t *testing.T, ethClient evmclient.Client,
})
config := evmtest.NewChainScopedConfig(t, globalConfig)
lggr := logger.Test(t)
mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))

db := pgtest.NewSqlxDB(t)
orm := log.NewORM(db, lggr, config.Database(), cltest.FixtureChainID)
Expand Down
4 changes: 2 additions & 2 deletions core/chains/evm/log/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

evmclimocks "github.com/smartcontractkit/chainlink/v2/core/chains/evm/client/mocks"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/log"
Expand Down Expand Up @@ -1326,7 +1326,7 @@ func TestBroadcaster_AppendLogChannel(t *testing.T) {
ch3 := make(chan types.Log)

ethClient := evmtest.NewEthClientMockWithDefaultChain(t)
mailMon := servicetest.RunHealthy(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.RunHealthy(t, mailboxtest.NewMonitor(t))
lb := log.NewBroadcaster(nil, ethClient, nil, logger.Test(t), nil, mailMon)
chCombined := lb.ExportedAppendLogChannel(ch1, ch2)
chCombined = lb.ExportedAppendLogChannel(chCombined, ch3)
Expand Down
2 changes: 1 addition & 1 deletion core/cmd/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (n ChainlinkAppFactory) NewApplication(ctx context.Context, cfg chainlink.G
}

keyStore := keystore.New(db, utils.GetScryptParams(cfg), appLggr, cfg.Database())
mailMon := mailbox.NewMonitor(cfg.AppID().String())
mailMon := mailbox.NewMonitor(cfg.AppID().String(), appLggr.Named("Mailbox"))

dbListener := cfg.Database().Listener()
eventBroadcaster := pg.NewEventBroadcaster(cfg.Database().URL(), dbListener.MinReconnectInterval(), dbListener.MaxReconnectDuration(), appLggr, cfg.AppID())
Expand Down
2 changes: 1 addition & 1 deletion core/internal/cltest/cltest.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func NewApplicationWithConfig(t testing.TB, cfg chainlink.GeneralConfig, flagsAn

keyStore := keystore.NewInMemory(db, utils.FastScryptParams, lggr, cfg.Database())

mailMon := mailbox.NewMonitor(cfg.AppID().String())
mailMon := mailbox.NewMonitor(cfg.AppID().String(), lggr.Named("Mailbox"))
loopRegistry := plugins.NewLoopRegistry(lggr, nil)

mercuryPool := wsrpc.NewPool(lggr, cache.Config{
Expand Down
6 changes: 4 additions & 2 deletions core/internal/testutils/evmtest/evmtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/types"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

commonmocks "github.com/smartcontractkit/chainlink/v2/common/types/mocks"
"github.com/smartcontractkit/chainlink/v2/core/chains"
Expand Down Expand Up @@ -81,8 +82,9 @@ func NewChainRelayExtenders(t testing.TB, testopts TestChainOpts) *evmrelay.Chai

func NewChainRelayExtOpts(t testing.TB, testopts TestChainOpts) legacyevm.ChainRelayExtenderConfig {
require.NotNil(t, testopts.KeyStore)
lggr := logger.TestLogger(t)
opts := legacyevm.ChainRelayExtenderConfig{
Logger: logger.TestLogger(t),
Logger: lggr,
KeyStore: testopts.KeyStore,
ChainOpts: legacyevm.ChainOpts{
AppConfig: testopts.GeneralConfig,
Expand Down Expand Up @@ -119,7 +121,7 @@ func NewChainRelayExtOpts(t testing.TB, testopts TestChainOpts) legacyevm.ChainR
}
}
if opts.MailMon == nil {
opts.MailMon = servicetest.Run(t, mailbox.NewMonitor(t.Name()))
opts.MailMon = servicetest.Run(t, mailboxtest.NewMonitor(t))
}
if testopts.GasEstimator != nil {
opts.GenGasEstimator = func(*big.Int) gas.EvmFeeEstimator {
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ require (
github.com/shirou/gopsutil/v3 v3.23.11 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/smartcontractkit/caigo v0.0.0-20230621050857-b29a4ca8c704 // indirect
github.com/smartcontractkit/chainlink-common v0.1.7-0.20231218150613-43bf581ae327 // indirect
github.com/smartcontractkit/chainlink-common v0.1.7-0.20231218160643-bd451bb2dd94 // indirect
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20231218175426-6e0427c661e5 // indirect
github.com/smartcontractkit/chainlink-data-streams v0.0.0-20231204152908-a6e3fe8ff2a1 // indirect
github.com/smartcontractkit/chainlink-feeds v0.0.0-20231127231053-2232d3a6766d // indirect
Expand Down
4 changes: 2 additions & 2 deletions core/scripts/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1148,8 +1148,8 @@ github.com/smartcontractkit/caigo v0.0.0-20230621050857-b29a4ca8c704 h1:T3lFWumv
github.com/smartcontractkit/caigo v0.0.0-20230621050857-b29a4ca8c704/go.mod h1:2QuJdEouTWjh5BDy5o/vgGXQtR4Gz8yH1IYB5eT7u4M=
github.com/smartcontractkit/chainlink-automation v1.0.1 h1:vVjBFq2Zsz21kPy1Pb0wpjF9zrbJX+zjXphDeeR4XZk=
github.com/smartcontractkit/chainlink-automation v1.0.1/go.mod h1:INSchkV3ntyDdlZKGWA030MPDpp6pbeuiRkRKYFCm2k=
github.com/smartcontractkit/chainlink-common v0.1.7-0.20231218150613-43bf581ae327 h1:7P+djpKBMQ2Cpv1ieUQdkZvDLt6owPvniHfMHSPFYjQ=
github.com/smartcontractkit/chainlink-common v0.1.7-0.20231218150613-43bf581ae327/go.mod h1:IdlfCN9rUs8Q/hrOYe8McNBIwEOHEsi0jilb3Cw77xs=
github.com/smartcontractkit/chainlink-common v0.1.7-0.20231218160643-bd451bb2dd94 h1:mrxa3HrQfbMi4ji6gGcQHuLptvoNaRAv4TLnGJngbLc=
github.com/smartcontractkit/chainlink-common v0.1.7-0.20231218160643-bd451bb2dd94/go.mod h1:IdlfCN9rUs8Q/hrOYe8McNBIwEOHEsi0jilb3Cw77xs=
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20231218175426-6e0427c661e5 h1:kBnmjv3fxU7krVIqZFvo1m4F6qBc4vPURQFX/mcChhI=
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20231218175426-6e0427c661e5/go.mod h1:EoM7wQ81mov7wsUzG4zEnnr0EH0POEo/I0hRDg433TU=
github.com/smartcontractkit/chainlink-data-streams v0.0.0-20231204152908-a6e3fe8ff2a1 h1:xYqRgZO0nMSO8CBCMR0r3WA+LZ4kNL8a6bnbyk/oBtQ=
Expand Down
6 changes: 3 additions & 3 deletions core/services/directrequest/delegate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"github.com/smartcontractkit/chainlink-common/pkg/assets"
"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

"github.com/smartcontractkit/chainlink/v2/core/bridges"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/log"
Expand Down Expand Up @@ -45,7 +45,7 @@ func TestDelegate_ServicesForSpec(t *testing.T) {
c.EVM[0].MinIncomingConfirmations = ptr[uint32](1)
})
keyStore := cltest.NewKeyStore(t, db, cfg.Database())
mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))
relayerExtenders := evmtest.NewChainRelayExtenders(t, evmtest.TestChainOpts{DB: db, GeneralConfig: cfg, Client: ethClient, MailMon: mailMon, KeyStore: keyStore.Eth()})

lggr := logger.TestLogger(t)
Expand Down Expand Up @@ -82,7 +82,7 @@ func NewDirectRequestUniverseWithConfig(t *testing.T, cfg chainlink.GeneralConfi
runner := pipeline_mocks.NewRunner(t)
broadcaster.On("AddDependents", 1)

mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))

db := pgtest.NewSqlxDB(t)
keyStore := cltest.NewKeyStore(t, db, cfg.Database())
Expand Down
4 changes: 2 additions & 2 deletions core/services/functions/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
decryptionPlugin "github.com/smartcontractkit/tdh2/go/ocr2/decryptionplugin"

"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

log_mocks "github.com/smartcontractkit/chainlink/v2/core/chains/evm/log/mocks"
"github.com/smartcontractkit/chainlink/v2/core/internal/cltest"
Expand Down Expand Up @@ -82,7 +82,7 @@ func NewFunctionsListenerUniverse(t *testing.T, timeoutSec int, pruneFrequencySe
ethClient := evmtest.NewEthClientMockWithDefaultChain(t)
broadcaster := log_mocks.NewBroadcaster(t)
broadcaster.On("AddDependents", 1)
mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))

db := pgtest.NewSqlxDB(t)
kst := cltest.NewKeyStore(t, db, cfg.Database())
Expand Down
12 changes: 6 additions & 6 deletions core/services/job/runner_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"gopkg.in/guregu/null.v4"

"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

"github.com/smartcontractkit/chainlink/v2/core/auth"
"github.com/smartcontractkit/chainlink/v2/core/bridges"
Expand Down Expand Up @@ -462,7 +462,7 @@ answer1 [type=median index=0];
legacyChains,
lggr,
config.Database(),
servicetest.Run(t, mailbox.NewMonitor(t.Name())),
servicetest.Run(t, mailboxtest.NewMonitor(t)),
)
_, err = sd.ServicesForSpec(jb)
require.NoError(t, err)
Expand Down Expand Up @@ -496,7 +496,7 @@ answer1 [type=median index=0];
legacyChains,
lggr,
config.Database(),
servicetest.Run(t, mailbox.NewMonitor(t.Name())),
servicetest.Run(t, mailboxtest.NewMonitor(t)),
)
_, err = sd.ServicesForSpec(jb)
require.NoError(t, err)
Expand Down Expand Up @@ -524,7 +524,7 @@ answer1 [type=median index=0];
legacyChains,
lggr,
config.Database(),
servicetest.Run(t, mailbox.NewMonitor(t.Name())),
servicetest.Run(t, mailboxtest.NewMonitor(t)),
)
_, err = sd.ServicesForSpec(jb)
require.NoError(t, err)
Expand Down Expand Up @@ -579,7 +579,7 @@ answer1 [type=median index=0];
legacyChains,
lggr,
config.Database(),
servicetest.Run(t, mailbox.NewMonitor(t.Name())),
servicetest.Run(t, mailboxtest.NewMonitor(t)),
)

jb.OCROracleSpec.CaptureEATelemetry = tc.jbCaptureEATelemetry
Expand Down Expand Up @@ -623,7 +623,7 @@ answer1 [type=median index=0];
legacyChains,
lggr,
config.Database(),
servicetest.Run(t, mailbox.NewMonitor(t.Name())),
servicetest.Run(t, mailboxtest.NewMonitor(t)),
)
services, err := sd.ServicesForSpec(*jb)
require.NoError(t, err)
Expand Down
10 changes: 5 additions & 5 deletions core/services/job/spawner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/loop"
"github.com/smartcontractkit/chainlink-common/pkg/services"
"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

"github.com/smartcontractkit/chainlink/v2/core/bridges"
mocklp "github.com/smartcontractkit/chainlink/v2/core/chains/evm/logpoller/mocks"
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestSpawner_CreateJobDeleteJob(t *testing.T) {
serviceA2 := mocks.NewServiceCtx(t)
serviceA1.On("Start", mock.Anything).Return(nil).Once()
serviceA2.On("Start", mock.Anything).Return(nil).Once().Run(func(mock.Arguments) { eventuallyA.ItHappened() })
mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))
dA := ocr.NewDelegate(nil, orm, nil, nil, nil, monitoringEndpoint, legacyChains, logger.TestLogger(t), config.Database(), mailMon)
delegateA := &delegate{jobA.Type, []job.ServiceCtx{serviceA1, serviceA2}, 0, make(chan struct{}), dA}

Expand Down Expand Up @@ -188,7 +188,7 @@ func TestSpawner_CreateJobDeleteJob(t *testing.T) {

lggr := logger.TestLogger(t)
orm := NewTestORM(t, db, pipeline.NewORM(db, lggr, config.Database(), config.JobPipeline().MaxSuccessfulRuns()), bridges.NewORM(db, lggr, config.Database()), keyStore, config.Database())
mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))
d := ocr.NewDelegate(nil, orm, nil, nil, nil, monitoringEndpoint, legacyChains, logger.TestLogger(t), config.Database(), mailMon)
delegateA := &delegate{jobA.Type, []job.ServiceCtx{serviceA1, serviceA2}, 0, nil, d}
spawner := job.NewSpawner(orm, config.Database(), noopChecker{}, map[job.Type]job.Delegate{
Expand Down Expand Up @@ -222,7 +222,7 @@ func TestSpawner_CreateJobDeleteJob(t *testing.T) {

lggr := logger.TestLogger(t)
orm := NewTestORM(t, db, pipeline.NewORM(db, lggr, config.Database(), config.JobPipeline().MaxSuccessfulRuns()), bridges.NewORM(db, lggr, config.Database()), keyStore, config.Database())
mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))
d := ocr.NewDelegate(nil, orm, nil, nil, nil, monitoringEndpoint, legacyChains, logger.TestLogger(t), config.Database(), mailMon)
delegateA := &delegate{jobA.Type, []job.ServiceCtx{serviceA1, serviceA2}, 0, nil, d}
spawner := job.NewSpawner(orm, config.Database(), noopChecker{}, map[job.Type]job.Delegate{
Expand Down Expand Up @@ -300,7 +300,7 @@ func TestSpawner_CreateJobDeleteJob(t *testing.T) {
jobOCR2VRF := makeOCR2VRFJobSpec(t, keyStore, config, address, chain.ID(), 2)

orm := NewTestORM(t, db, pipeline.NewORM(db, lggr, config.Database(), config.JobPipeline().MaxSuccessfulRuns()), bridges.NewORM(db, lggr, config.Database()), keyStore, config.Database())
mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))

processConfig := plugins.NewRegistrarConfig(loop.GRPCOpts{}, func(name string) (*plugins.RegisteredLoop, error) { return nil, nil })
ocr2DelegateConfig := ocr2.NewDelegateConfig(config.OCR2(), config.Mercury(), config.Threshold(), config.Insecure(), config.JobPipeline(), config.Database(), processConfig)
Expand Down
4 changes: 2 additions & 2 deletions core/services/keeper/registry_synchronizer_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/jmoiron/sqlx"

"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

evmclimocks "github.com/smartcontractkit/chainlink/v2/core/chains/evm/client/mocks"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/log"
Expand Down Expand Up @@ -73,7 +73,7 @@ func setupRegistrySync(t *testing.T, version keeper.RegistryVersion) (
})).Maybe().Return(func() {})
lbMock.On("IsConnected").Return(true).Maybe()

mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))

orm := keeper.NewORM(db, logger.TestLogger(t), ch.Config().Database())
synchronizer := keeper.NewRegistrySynchronizer(keeper.RegistrySynchronizerOptions{
Expand Down
4 changes: 2 additions & 2 deletions core/services/ocr/contract_tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting/types"

"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

commonmocks "github.com/smartcontractkit/chainlink/v2/common/mocks"
evmclimocks "github.com/smartcontractkit/chainlink/v2/core/chains/evm/client/mocks"
Expand Down Expand Up @@ -84,7 +84,7 @@ func newContractTrackerUni(t *testing.T, opts ...interface{}) (uni contractTrack
uni.hb = commonmocks.NewHeadBroadcaster[*evmtypes.Head, common.Hash](t)
uni.ec = evmtest.NewEthClientMock(t)

mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))
db := pgtest.NewSqlxDB(t)
uni.tracker = ocr.NewOCRContractTracker(
contract,
Expand Down
6 changes: 3 additions & 3 deletions core/services/vrf/delegate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-common/pkg/services/servicetest"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox/mailboxtest"

"github.com/smartcontractkit/chainlink/v2/core/bridges"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/assets"
Expand Down Expand Up @@ -150,7 +150,7 @@ func setup(t *testing.T) (vrfUniverse, *v1.Listener, job.Job) {
cfg := configtest.NewTestGeneralConfig(t)
vuni := buildVrfUni(t, db, cfg)

mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))

vd := vrf.NewDelegate(
db,
Expand Down Expand Up @@ -676,7 +676,7 @@ func Test_VRFV2PlusServiceFailsWhenVRFOwnerProvided(t *testing.T) {
cfg := configtest.NewTestGeneralConfig(t)
vuni := buildVrfUni(t, db, cfg)

mailMon := servicetest.Run(t, mailbox.NewMonitor(t.Name()))
mailMon := servicetest.Run(t, mailboxtest.NewMonitor(t))

vd := vrf.NewDelegate(
db,
Expand Down
9 changes: 6 additions & 3 deletions core/web/testdata/body/health.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@
<summary title="JobSpawner" class="noexpand"><span class="passing">JobSpawner</span></summary>
</details>
<details open>
<summary title=""><span class="">Mercury</span></summary>
<summary title=""><span class="">Mailbox</span></summary>
<details open>
<summary title="Mercury.WSRPCPool" class="noexpand"><span class="passing">WSRPCPool</span></summary>
<summary title="Mailbox.Monitor" class="noexpand"><span class="passing">Monitor</span></summary>
</details>
</details>
<details open>
<summary title="Monitor" class="noexpand"><span class="passing">Monitor</span></summary>
<summary title=""><span class="">Mercury</span></summary>
<details open>
<summary title="Mercury.WSRPCPool" class="noexpand"><span class="passing">WSRPCPool</span></summary>
</details>
</details>
<details open>
<summary title="PipelineORM" class="noexpand"><span class="passing">PipelineORM</span></summary>
Expand Down
Loading

0 comments on commit 0e5b219

Please sign in to comment.