diff --git a/test/functional/feature_loan_setcollateraltoken.py b/test/functional/feature_loan_setcollateraltoken.py index f187b50f3a..1a63402686 100755 --- a/test/functional/feature_loan_setcollateraltoken.py +++ b/test/functional/feature_loan_setcollateraltoken.py @@ -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, diff --git a/test/functional/feature_loan_setloantoken.py b/test/functional/feature_loan_setloantoken.py index d5a37df2ad..0e14c9e896 100755 --- a/test/functional/feature_loan_setloantoken.py +++ b/test/functional/feature_loan_setloantoken.py @@ -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", diff --git a/test/functional/feature_token_lock.py b/test/functional/feature_token_lock.py old mode 100644 new mode 100755