Browse Source

statesync: use specific testing.T logger for tests (#7543)

pull/7549/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
d331a08607
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      internal/statesync/reactor_test.go

+ 4
- 2
internal/statesync/reactor_test.go View File

@ -161,13 +161,15 @@ func setup(
}
}
logger := log.NewTestingLogger(t)
var err error
rts.reactor, err = NewReactor(
ctx,
factory.DefaultTestChainID,
1,
*cfg,
log.TestingLogger(),
logger.With("component", "reactor"),
conn,
connQuery,
chCreator,
@ -181,7 +183,7 @@ func setup(
rts.syncer = newSyncer(
*cfg,
log.NewNopLogger(),
logger.With("component", "syncer"),
conn,
connQuery,
stateProvider,


Loading…
Cancel
Save