Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Fixed scenario test error
Browse files Browse the repository at this point in the history
  • Loading branch information
jimni1222 committed Oct 21, 2019
1 parent dd0c44a commit 43a9108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/scenarioTest/accountKeyMultiSig.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ describe('Scenario test with AccountWithAccountKeyMultiSig', () => {

const expectedError = 'invalid transaction v, r, s values of the sender'
try {
await caver.klay.sendSignedTransaction(feePayerSigned)
await caver.klay.sendSignedTransaction(senderSigned)
} catch (e) { expect(e.message).to.include(expectedError) }
}).timeout(200000)
})
Expand Down
8 changes: 4 additions & 4 deletions test/scenarioTest/accountKeyRoleBased.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,14 +610,14 @@ describe('Scenario test with AccountWithAccountKeyRoleBased', () => {
let expectedError = 'invalid transaction v, r, s values of the sender'

try {
await caver.klay.sendSignedTransaction(feePayerSigned)
await caver.klay.sendSignedTransaction(senderSigned)
} catch (e) { expect(e.message).to.include(expectedError) }

// insufficient weight
senderSigned = await caver.klay.accounts.signTransaction(txObject, account.transactionKey[0])

try {
await caver.klay.sendSignedTransaction(feePayerSigned)
await caver.klay.sendSignedTransaction(senderSigned)
} catch (e) { expect(e.message).to.include(expectedError) }

txObject = {
Expand All @@ -630,14 +630,14 @@ describe('Scenario test with AccountWithAccountKeyRoleBased', () => {
senderSigned = await caver.klay.accounts.signTransaction(txObject, account.transactionKey)

try {
await caver.klay.sendSignedTransaction(feePayerSigned)
await caver.klay.sendSignedTransaction(senderSigned)
} catch (e) { expect(e.message).to.include(expectedError) }

// insufficient weight
senderSigned = await caver.klay.accounts.signTransaction(txObject, account.updateKey[0])

try {
await caver.klay.sendSignedTransaction(feePayerSigned)
await caver.klay.sendSignedTransaction(senderSigned)
} catch (e) { expect(e.message).to.include(expectedError) }

txObject = {
Expand Down

0 comments on commit 43a9108

Please sign in to comment.