Skip to content

Commit 474d756

Browse files
committed
abi/bind,parallaxkey,prlclient: fix test cases
1 parent 4433ebb commit 474d756

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

accounts/abi/bind/template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ import (
9292
"strings"
9393
"errors"
9494
95-
parallax "github.com/microstack-tech/parallax"
95+
"github.com/microstack-tech/parallax"
9696
"github.com/microstack-tech/parallax/accounts/abi"
9797
"github.com/microstack-tech/parallax/accounts/abi/bind"
9898
"github.com/microstack-tech/parallax/common"
@@ -105,7 +105,7 @@ var (
105105
_ = errors.New
106106
_ = big.NewInt
107107
_ = strings.NewReader
108-
_ = parallax.NotFound
108+
_ = parallax.ErrNotFound
109109
_ = bind.Bind
110110
_ = common.Big1
111111
_ = types.BloomLookup

cmd/parallaxkey/run_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func runParallaxkey(t *testing.T, args ...string) *testParallaxkey {
3939

4040
func TestMain(m *testing.M) {
4141
// Run the app if we've been exec'd as "parallaxkey-test" in runParallaxkey.
42-
reexec.Register("Parallaxkey-test", func() {
42+
reexec.Register("parallaxkey-test", func() {
4343
if err := app.Run(os.Args); err != nil {
4444
fmt.Fprintln(os.Stderr, err)
4545
os.Exit(1)

prlclient/prlclient_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func testTransactionInBlockInterrupted(t *testing.T, client *rpc.Client) {
409409

410410
// Test tx in block not found.
411411
if _, err := ec.TransactionInBlock(context.Background(), block.Hash(), 20); err != parallax.ErrNotFound {
412-
t.Fatal("error should be parallax.NotFound")
412+
t.Fatal("error should be parallax.ErrNotFound")
413413
}
414414
}
415415

0 commit comments

Comments
 (0)