Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added sleep to ln test #52

Merged
merged 2 commits into from
Oct 1, 2024
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
4 changes: 0 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:

build:
name: Build
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 5

Expand All @@ -41,7 +40,6 @@ jobs:

types:
name: Types
needs: lint
runs-on: ubuntu-latest

steps:
Expand All @@ -56,7 +54,6 @@ jobs:

test:
name: Test
needs: lint
runs-on: ubuntu-latest

steps:
Expand All @@ -78,7 +75,6 @@ jobs:

build-docs:
name: Build Docs
needs: lint
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 3 additions & 1 deletion packages/core-web/src/services/LightningService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ walletTest(
await expect(
wallet.testing.payWithFaucet(invoice.invoice),
).resolves.toBeDefined()
await expect(wallet.lightning.waitForReceive(invoice.operation_id)).resolves
await wallet.lightning.waitForReceive(invoice.operation_id)
// Wait for balance to fully update
await new Promise((resolve) => setTimeout(resolve, 1000))
const externalInvoice = await wallet.testing.getExternalInvoice(10)
const payment = await wallet.lightning.payInvoice(externalInvoice.pr)
expect(payment).toBeDefined()
Expand Down