Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit c287dae

Browse files
committed
Fix whitelist tests
1 parent 49494c0 commit c287dae

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/wallet/whitelist_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package wallet_test
22

33
import (
4-
"errors"
54
"math/big"
65

76
"github.com/ethereum/go-ethereum/common"
@@ -12,6 +11,7 @@ import (
1211
)
1312

1413
var _ = Describe("initializeWhitelist", func() {
14+
1515
BeforeEach(func() {
1616
tx, err := Wallet.SetSpendLimit(Owner.TransactOpts(), EthToWei(1))
1717
Expect(err).ToNot(HaveOccurred())
@@ -92,8 +92,7 @@ var _ = Describe("initializeWhitelist", func() {
9292
It("should only persist 1 item in the array", func() {
9393
_, err := Wallet.WhitelistArray(nil, big.NewInt(1))
9494
Expect(err).To(HaveOccurred())
95-
96-
Expect(err).To(MatchError(errors.New("abi: unmarshalling empty output")))
95+
Expect(err.Error()).To(ContainSubstring("abi: attempting to unmarshall"))
9796
})
9897

9998
It("should only persist 1 item in the array and it should be 0x1", func() {
@@ -566,7 +565,7 @@ var _ = Describe("whitelistRemoval", func() {
566565
It("should remove the 0x1 address from the Whitelist Array", func() {
567566
_, err := Wallet.WhitelistArray(nil, big.NewInt(1))
568567
Expect(err).To(HaveOccurred())
569-
Expect(err).To(MatchError(errors.New("abi: unmarshalling empty output")))
568+
Expect(err.Error()).To(ContainSubstring("abi: attempting to unmarshall"))
570569
})
571570

572571
})

0 commit comments

Comments
 (0)