mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
accounts/abi/bind: no longer need to skip Bind test
bind.Bind now works in symlinked environments.
This commit is contained in:
parent
378d865e84
commit
0705557465
1 changed files with 0 additions and 9 deletions
|
|
@ -819,15 +819,6 @@ func TestBindings(t *testing.T) {
|
||||||
if !common.FileExist(gocmd) {
|
if !common.FileExist(gocmd) {
|
||||||
t.Skip("go sdk not found for testing")
|
t.Skip("go sdk not found for testing")
|
||||||
}
|
}
|
||||||
// Skip the test if the go-ethereum sources are symlinked (https://github.com/golang/go/issues/14845)
|
|
||||||
linkTestCode := fmt.Sprintf("package linktest\nfunc CheckSymlinks(){\nfmt.Println(backends.NewSimulatedBackend(nil,uint64(10000000000)))\n}")
|
|
||||||
linkTestDeps, err := imports.Process(os.TempDir(), []byte(linkTestCode), nil)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("failed check for goimports symlink bug: %v", err)
|
|
||||||
}
|
|
||||||
if !strings.Contains(string(linkTestDeps), "go-ethereum") {
|
|
||||||
t.Skip("symlinked environment doesn't support bind (https://github.com/golang/go/issues/14845)")
|
|
||||||
}
|
|
||||||
// Create a temporary workspace for the test suite
|
// Create a temporary workspace for the test suite
|
||||||
ws, err := ioutil.TempDir("", "")
|
ws, err := ioutil.TempDir("", "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue