Skip to content

Commit

Permalink
interop go version
Browse files Browse the repository at this point in the history
Signed-off-by: Ekaterina Pavlova <[email protected]>
  • Loading branch information
AliceInHunterland committed Feb 15, 2024
1 parent d964420 commit a99b7ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/smartcontract/contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a99b7ab

Please sign in to comment.