Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frame/bonded-finance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ pub mod pallet {
/// The minimum reward for an offer.
///
/// Must be > T::Vesting::MinVestedTransfer.
#[pallet::constant]
type MinReward: Get<BalanceOf<Self>>;

/// The origin that is allowed to cancel bond offers.
Expand Down Expand Up @@ -250,7 +251,7 @@ pub mod pallet {
&offer_account,
&issuer,
offer.reward.amount,
true,
false,
)?;
BondOffers::<T>::remove(offer_id);
Self::deposit_event(Event::<T>::OfferCancelled { offer_id });
Expand Down
12 changes: 12 additions & 0 deletions integration-tests/runtime-tests/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"diff": true,
"extension": ["js", "cjs", "mjs"],
"package": "./package.json",
"reporter": "mochawesome",
"slow": "75",
"timeout": "2000",
"ui": "bdd",
"watch-files": ["lib/**/*.js", "test/**/*.js"],
"watch-ignore": ["lib/vendor"],
"require": "src/utils/testSetup.js"
}
8 changes: 7 additions & 1 deletion integration-tests/runtime-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ $ npm run init
$ npm run test
```

### To run the type generator:
```bash
$ npm run gen
```


## ToDo:
* Add all general test cases.
Expand All @@ -43,7 +48,8 @@ Else the test will timeout before any results, causing a headache and wondering
e.g.
```typescript
describe('Imaginary Test', function () {
this.timeout(0); // <--
// Timeout set to 2 minutes
this.timeout(2*60*1000); // <--
it('Imaginary test part', async (done) => {
// Test Stuff...
});
Expand Down
Loading