Skip to content

Commit

Permalink
Minor updates to test scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed Nov 13, 2023
1 parent cdd0f44 commit ac85bbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions system-tests/test/deposit-redemption.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,13 @@ describe("System Test - Deposit and redemption", () => {
})

it("should close the redemption request on the bridge", async () => {
const request =
await maintainerTbtc.redemptions.getRedemptionRequests(
await expect(
maintainerTbtc.redemptions.getRedemptionRequests(
depositorBitcoinAddress,
systemTestsContext.walletBitcoinKeyPair.publicKey.compressed,
"pending"
)
expect(request.requestedAt).to.be.equal(0)
).to.be.rejectedWith("Redemption request does not exist")
})

it("should decrease Bridge's balance in the bank", async () => {
Expand Down Expand Up @@ -526,7 +526,7 @@ describe("System Test - Deposit and redemption", () => {
- Output index: ${depositUtxo.outputIndex}
`)

await deposit.initiateMinting()
await deposit.initiateMinting(depositUtxo)

console.log(`
Deposit revealed on Ethereum chain
Expand Down Expand Up @@ -758,13 +758,13 @@ describe("System Test - Deposit and redemption", () => {
})

it("should close the redemption request on the bridge", async () => {
const request =
await maintainerTbtc.redemptions.getRedemptionRequests(
await expect(
maintainerTbtc.redemptions.getRedemptionRequests(
depositorBitcoinAddress,
systemTestsContext.walletBitcoinKeyPair.publicKey.compressed,
"pending"
)
expect(request.requestedAt).to.be.equal(0)
).to.be.rejectedWith("Redemption request does not exist")
})

it("should decrease Bridge's balance in the bank", async () => {
Expand Down
8 changes: 4 additions & 4 deletions system-tests/test/minting-unminting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ describe("System Test - Minting and unminting", () => {
// the Bitcoin chain is in sync and then start the revealing process.
await new Promise((r) => setTimeout(r, 3000))

await deposit.initiateMinting()
await deposit.initiateMinting(depositUtxo)

console.log(`
Deposit revealed on Ethereum chain
Expand Down Expand Up @@ -472,14 +472,14 @@ describe("System Test - Minting and unminting", () => {
})

it("should close the redemption request on the bridge", async () => {
const request =
await maintainerTbtc.redemptions.getRedemptionRequests(
await expect(
maintainerTbtc.redemptions.getRedemptionRequests(
depositorBitcoinAddress,
systemTestsContext.walletBitcoinKeyPair.publicKey
.compressed,
"pending"
)
expect(request.requestedAt).to.be.equal(0)
).to.be.rejectedWith("Redemption request does not exist")
})

it("should decrease Bridge's balance in the bank", async () => {
Expand Down

0 comments on commit ac85bbf

Please sign in to comment.