forked from cerc-io/plugeth
Rebase cleanup
This commit is contained in:
parent
01ec4dbb12
commit
baea8e87e5
@ -8,8 +8,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
// "github.com/ethereum/go-ethereum/logger/glog"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -25,33 +23,6 @@ var (
|
|||||||
VmSkipTests = []string{}
|
VmSkipTests = []string{}
|
||||||
)
|
)
|
||||||
|
|
||||||
// type TestRunner interface {
|
|
||||||
// // LoadTest()
|
|
||||||
// RunTest() error
|
|
||||||
// }
|
|
||||||
|
|
||||||
// func RunTests(bt map[string]TestRunner, skipTests []string) error {
|
|
||||||
// // map skipped tests to boolean set
|
|
||||||
// skipTest := make(map[string]bool, len(skipTests))
|
|
||||||
// for _, name := range skipTests {
|
|
||||||
// skipTest[name] = true
|
|
||||||
// }
|
|
||||||
|
|
||||||
// for name, test := range bt {
|
|
||||||
// // if the test should be skipped, return
|
|
||||||
// if skipTest[name] {
|
|
||||||
// glog.Infoln("Skipping block test", name)
|
|
||||||
// return nil
|
|
||||||
// }
|
|
||||||
// // test the block
|
|
||||||
// if err := test.RunTest(); err != nil {
|
|
||||||
// return err
|
|
||||||
// }
|
|
||||||
// glog.Infoln("Block test passed: ", name)
|
|
||||||
// }
|
|
||||||
// return nil
|
|
||||||
// }
|
|
||||||
|
|
||||||
func readJson(reader io.Reader, value interface{}) error {
|
func readJson(reader io.Reader, value interface{}) error {
|
||||||
data, err := ioutil.ReadAll(reader)
|
data, err := ioutil.ReadAll(reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -130,7 +130,7 @@ func runVmTest(test VmTest) error {
|
|||||||
vexp := common.HexToHash(value)
|
vexp := common.HexToHash(value)
|
||||||
|
|
||||||
if v != vexp {
|
if v != vexp {
|
||||||
return fmt.Errorf("(%x: %s) storage failed. Expected %x, got %x (%v %v)\n", obj.Address().Bytes()[0:4], addr, vexp, v, vexp.BigD(vexp), v.Big(v))
|
return fmt.Errorf("(%x: %s) storage failed. Expected %x, got %x (%v %v)\n", obj.Address().Bytes()[0:4], addr, vexp, v, vexp.Big(), v.Big())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user