fix: broken paych tests
This commit is contained in:
parent
a081dc7674
commit
de132d39ec
@ -125,9 +125,9 @@ func TestPaymentChannelStatus(t *testing.T) {
|
|||||||
channelAmt := uint64(100)
|
channelAmt := uint64(100)
|
||||||
create := make(chan string)
|
create := make(chan string)
|
||||||
go func() {
|
go func() {
|
||||||
// creator: paych get <creator> <receiver> <amount>
|
// creator: paych add-funds <creator> <receiver> <amount>
|
||||||
cmd = []string{creatorAddr.String(), receiverAddr.String(), fmt.Sprintf("%d", channelAmt)}
|
cmd = []string{creatorAddr.String(), receiverAddr.String(), fmt.Sprintf("%d", channelAmt)}
|
||||||
create <- creatorCLI.runCmd(paychGetCmd, cmd)
|
create <- creatorCLI.runCmd(paychAddFundsCmd, cmd)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Wait for the output to stop being "Channel does not exist"
|
// Wait for the output to stop being "Channel does not exist"
|
||||||
@ -344,10 +344,10 @@ func TestPaymentChannelVoucherCreateShortfall(t *testing.T) {
|
|||||||
mockCLI := newMockCLI(t)
|
mockCLI := newMockCLI(t)
|
||||||
creatorCLI := mockCLI.client(paymentCreator.ListenAddr)
|
creatorCLI := mockCLI.client(paymentCreator.ListenAddr)
|
||||||
|
|
||||||
// creator: paych get <creator> <receiver> <amount>
|
// creator: paych add-funds <creator> <receiver> <amount>
|
||||||
channelAmt := 100
|
channelAmt := 100
|
||||||
cmd := []string{creatorAddr.String(), receiverAddr.String(), fmt.Sprintf("%d", channelAmt)}
|
cmd := []string{creatorAddr.String(), receiverAddr.String(), fmt.Sprintf("%d", channelAmt)}
|
||||||
chstr := creatorCLI.runCmd(paychGetCmd, cmd)
|
chstr := creatorCLI.runCmd(paychAddFundsCmd, cmd)
|
||||||
|
|
||||||
chAddr, err := address.NewFromString(chstr)
|
chAddr, err := address.NewFromString(chstr)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user