[#3] Change neotest to covertest CompileFile in tests
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
parent
45b28b723b
commit
6519282570
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"git.frostfs.info/TrueCloudLab/contract-coverage-primer/covertest"
|
||||||
"github.com/nspcc-dev/neo-go/pkg/neotest"
|
"github.com/nspcc-dev/neo-go/pkg/neotest"
|
||||||
"github.com/nspcc-dev/neo-go/pkg/neotest/chain"
|
"github.com/nspcc-dev/neo-go/pkg/neotest/chain"
|
||||||
"github.com/nspcc-dev/neo-go/pkg/vm/stackitem"
|
"github.com/nspcc-dev/neo-go/pkg/vm/stackitem"
|
||||||
|
@ -24,7 +25,8 @@ func newExecutor(t *testing.T) *neotest.Executor {
|
||||||
|
|
||||||
func TestContract(t *testing.T) {
|
func TestContract(t *testing.T) {
|
||||||
e := newExecutor(t)
|
e := newExecutor(t)
|
||||||
ctr := neotest.CompileFile(t, e.CommitteeHash, ctrPath, path.Join(ctrPath, "config.yml"))
|
ctrDI := covertest.CompileFile(t, e.CommitteeHash, ctrPath, path.Join(ctrPath, "config.yml"))
|
||||||
|
ctr := ctrDI.Contract
|
||||||
e.DeployContract(t, ctr, nil)
|
e.DeployContract(t, ctr, nil)
|
||||||
inv := e.CommitteeInvoker(ctr.Hash)
|
inv := e.CommitteeInvoker(ctr.Hash)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue