-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync integration test on leasing more than you have was added
- Loading branch information
1 parent
47214ba
commit cd24dcc
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
it/src/test/scala/com/wavesplatform/it/sync/LeaseTransactionSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
} | ||
} |