From a99b7ab3bdeafd98012397a50f85e0c195dd1b20 Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Thu, 15 Feb 2024 10:08:34 +0300 Subject: [PATCH] interop go version Signed-off-by: Ekaterina Pavlova --- cli/smartcontract/contract_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli/smartcontract/contract_test.go b/cli/smartcontract/contract_test.go index 4b53e7fbad..bfa15b5a5d 100644 --- a/cli/smartcontract/contract_test.go +++ b/cli/smartcontract/contract_test.go @@ -5,6 +5,7 @@ import ( "encoding/hex" "encoding/json" "os" + "os/exec" "path/filepath" "strconv" "strings" @@ -278,6 +279,12 @@ func TestContractInitAndCompile(t *testing.T) { e.RunWithError(t, append(cmd, "something")...) }) + cmdGoModTidy := exec.Command("go", "mod", "tidy") + cmdGoModTidy.Dir = ctrPath + + err = cmdGoModTidy.Run() + require.NoError(t, err, "Running go mod tidy failed") + e.Run(t, cmd...) e.CheckEOF(t) require.FileExists(t, nefPath)