Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixa84 committed May 25, 2022
1 parent c58a125 commit 97fef84
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/functional/feature_loan_setcollateraltoken.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,14 @@ def run_test(self):
# Move to fork height
self.nodes[0].generate(150 - self.nodes[0].getblockcount())

# Check errors on FCC
assert_raises_rpc_error(-32600, "setCollateralToken factor must be lower or equal than 1.00000000", self.nodes[0].setcollateraltoken, {
'token': idDFI,
'factor': 1.01,
'fixedIntervalPriceId': "DFI/USD"})

self.nodes[0].generate(1)

# Check errors
assert_raises_rpc_error(-32600, "Percentage exceeds 100%", self.nodes[0].setcollateraltoken, {
'token': idDFI,
Expand Down
3 changes: 3 additions & 0 deletions test/functional/feature_loan_setloantoken.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ def run_test(self):
# Move to fork height
self.nodes[0].generate(110 - self.nodes[0].getblockcount())

# Move to FCC +1
self.nodes[0].generate(1)

assert_raises_rpc_error(-32600, 'token symbol should be non-empty and starts with a letter', self.nodes[0].setloantoken, {
'symbol': "",
'name': "Google",
Expand Down
Empty file modified test/functional/feature_token_lock.py
100644 → 100755
Empty file.

0 comments on commit 97fef84

Please sign in to comment.