From 6519282570c38ba882555047cccfcb03a05c82ba Mon Sep 17 00:00:00 2001 From: Ekaterina Lebedeva Date: Tue, 1 Aug 2023 16:09:07 +0300 Subject: [PATCH] [#3] Change neotest to covertest CompileFile in tests Signed-off-by: Ekaterina Lebedeva --- tests/contract_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/contract_test.go b/tests/contract_test.go index ab20fd9..deac7af 100644 --- a/tests/contract_test.go +++ b/tests/contract_test.go @@ -4,6 +4,7 @@ import ( "path" "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/chain" "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) { 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) inv := e.CommitteeInvoker(ctr.Hash)