Skip to content

Commit

Permalink
Move code block in core_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Nov 2, 2022
1 parent 2496dfc commit 76ebbfd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/difference/core/driver/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,6 @@ func (s *CoreSuite) executeTraces() {
s.Run(fmt.Sprintf("Trace num: %d", i), func() {
// Setup a new pair of chains for each trace
s.SetupTest()
// TODO: move these initialisation steps to somewhere sensible
s.vscidToKeyAssignment = map[uint64]map[int64]providerkeeper.ConsumerPublicKey{}
s.vscidToKeyAssignment[16] = s.readCurrentKeyAssignment()
s.vscidToKeyAssignment[s.offsetProviderVscId] = s.readCurrentKeyAssignment()

s.traces.CurrentTraceIx = i
defer func() {
Expand Down Expand Up @@ -594,4 +590,7 @@ func (s *CoreSuite) SetupTest() {
s.offsetTimeUnix = offsetTimeUnix
s.offsetProviderVscId = providerVscID
s.simibc = simibc.MakeRelayedPath(s.Suite.T(), path)
s.vscidToKeyAssignment = map[uint64]map[int64]providerkeeper.ConsumerPublicKey{}
s.vscidToKeyAssignment[16] = s.readCurrentKeyAssignment() // TODO: unhardcode, check if needed
s.vscidToKeyAssignment[s.offsetProviderVscId] = s.readCurrentKeyAssignment()
}

0 comments on commit 76ebbfd

Please sign in to comment.