Merge pull request #3551 from filecoin-project/fix/paych-cli-tests

paych: fix broken paych tests
This commit is contained in:
Łukasz Magiera 2020-09-04 18:32:26 +02:00 committed by GitHub
commit 52ce80f2b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ func TestPaymentChannelStatus(t *testing.T) {
channelAmt := uint64(100)
create := make(chan string)
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)}
create <- creatorCLI.runCmd(paychAddFundsCmd, cmd)
}()
@ -344,7 +344,7 @@ func TestPaymentChannelVoucherCreateShortfall(t *testing.T) {
mockCLI := newMockCLI(t)
creatorCLI := mockCLI.client(paymentCreator.ListenAddr)
// creator: paych get <creator> <receiver> <amount>
// creator: paych add-funds <creator> <receiver> <amount>
channelAmt := 100
cmd := []string{creatorAddr.String(), receiverAddr.String(), fmt.Sprintf("%d", channelAmt)}
chstr := creatorCLI.runCmd(paychAddFundsCmd, cmd)