internals: move testchain from network to internals

It'll be useful for tests outside of the network pkg.
This commit is contained in:
Anna Shaleva 2021-02-01 13:50:08 +03:00 committed by AnnaShaleva
parent bfbd096fed
commit 4ad9c7929b
4 changed files with 469 additions and 343 deletions

View file

@ -4,13 +4,14 @@ import (
"testing"
"time"
"github.com/nspcc-dev/neo-go/internal/fakechain"
"github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/stretchr/testify/assert"
"go.uber.org/zap/zaptest"
)
func TestBlockQueue(t *testing.T) {
chain := newTestChain()
chain := fakechain.NewFakeChain()
// notice, it's not yet running
bq := newBlockQueue(0, chain, zaptest.NewLogger(t), nil)
blocks := make([]*block.Block, 11)