Skip to content

Commit

Permalink
Merge pull request #885 from wavesplatform/node-367-negative-balance-…
Browse files Browse the repository at this point in the history
…after-leasing

NODE 367: Sync integration test on leasing more than you have was added
  • Loading branch information
alexeykiselev authored Mar 2, 2018
2 parents 6f3c425 + cd24dcc commit 9715e65
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.wavesplatform.it.sync

import com.wavesplatform.it.api.SyncHttpApi._
import com.wavesplatform.it.transactions.BaseTransactionSuite
import com.wavesplatform.it.util._

class LeaseTransactionSuite extends BaseTransactionSuite {

private val defaultQuantity = 100000
private val decimals: Byte = 2
private val defaultFee = 1.waves

test("can't lease more than you have") {
val (balance, _) = notMiner.accountBalances(firstAddress)
assertBadRequest2(sender.lease(firstAddress, secondAddress, balance - defaultFee + 1, defaultFee))
}
}

0 comments on commit 9715e65

Please sign in to comment.