Skip to content

Commit

Permalink
test(insolvency): add tests for Kava lend insolvency check (#1981)
Browse files Browse the repository at this point in the history
* add additional tests that attempt to borrow funds from the insolvent market(should fail), and attempt to borrow funds from the not insolvent market (it will fail, but shouldn't). The not insolvent market should continue to processs borrows

* remove unused code

* make tests less specific for string contains

* change the structure for new and old tests and add more verbosity for other tests

* remove print

* remove unneeded code

* add paren

* remove duplicate test case with invalid test name, and update to use error contains in places where it was validating if true for strings contains

---------

Co-authored-by: Sam Sheffield <[email protected]>
  • Loading branch information
sesheffield and sesheffield authored Jul 30, 2024
1 parent b4c0465 commit 916ec6d
Show file tree
Hide file tree
Showing 2 changed files with 508 additions and 265 deletions.
1 change: 0 additions & 1 deletion x/hard/keeper/borrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
sdkmath "cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

"github.com/kava-labs/kava/x/hard/types"
)

Expand Down
Loading

0 comments on commit 916ec6d

Please sign in to comment.