Skip to content

Commit 0601de0

Browse files
committed
check returned err
1 parent 82b8120 commit 0601de0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ require (
77
github.com/ava-labs/subnet-evm v0.5.3
88
github.com/onsi/ginkgo/v2 v2.8.1
99
github.com/onsi/gomega v1.26.0
10+
github.com/stretchr/testify v1.8.3
1011
)
1112

1213
require (
@@ -87,7 +88,6 @@ require (
8788
github.com/spf13/pflag v1.0.5 // indirect
8889
github.com/spf13/viper v1.12.0 // indirect
8990
github.com/status-im/keycard-go v0.2.0 // indirect
90-
github.com/stretchr/testify v1.8.3 // indirect
9191
github.com/subosito/gotenv v1.3.0 // indirect
9292
github.com/supranational/blst v0.3.11-0.20220920110316-f72618070295 // indirect
9393
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect

tests/precompile/precompile_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
ginkgo "github.com/onsi/ginkgo/v2"
1111
"github.com/onsi/gomega"
12+
"github.com/stretchr/testify/require"
1213

1314
// Import the solidity package, so that ginkgo maps out the tests declared within the package
1415
_ "github.com/ava-labs/precompile-evm/tests/precompile/solidity"
@@ -17,7 +18,8 @@ import (
1718

1819
func TestE2E(t *testing.T) {
1920
if basePath := os.Getenv("TEST_SOURCE_ROOT"); basePath != "" {
20-
os.Chdir(basePath)
21+
err := os.Chdir(basePath)
22+
require.NoError(t, err)
2123
}
2224
gomega.RegisterFailHandler(ginkgo.Fail)
2325
solidity.RegisterAsyncTests()

0 commit comments

Comments
 (0)