瀏覽代碼

geth: fixed failing cli tests

obscuren 10 年之前
父節點
當前提交
f46af4508b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cmd/geth/js_test.go

+ 2 - 2
cmd/geth/js_test.go

@@ -175,7 +175,7 @@ func TestBlockChain(t *testing.T) {
 	defer ethereum.Stop()
 
 	// should get current block
-	val0, err := repl.re.Run("admin.dumpBlock()")
+	val0, err := repl.re.Run("admin.debug.dumpBlock()")
 	if err != nil {
 		t.Errorf("expected no error, got %v", err)
 	}
@@ -197,7 +197,7 @@ func TestBlockChain(t *testing.T) {
 	var val1 otto.Value
 
 	// should get current block
-	val1, err = repl.re.Run("admin.dumpBlock()")
+	val1, err = repl.re.Run("admin.debug.dumpBlock()")
 	if err != nil {
 		t.Errorf("expected no error, got %v", err)
 	}