-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add tests for receiving and paying invoices when position is open #880
Conversation
4f6a8aa
to
5cd8caa
Compare
5cd8caa
to
4c86842
Compare
d9ef756
to
ab9fdbf
Compare
@holzeis it failed again on CI - I think I will add a getter to see open positions and |
I think that would be useful for many reasons 👍 |
Starting from a funded state or an open position state is common.
4d1ccd5
to
ac90c99
Compare
We used to return success on the API when we knew the payment failed due to any of the RetryableSendFailure reasons. Since we know the payment failed, it's best to just return the error, so the caller can do something about it.
Keep capturing in the app, don't capture backtrace in the tests.
I will move that into a follow-up, as I don't want to block anyone else writing e2e tests (I know @da-kami is about to do some) |
bors r+ |
Canceled. |
Contrary to a local run the CI is skipping the direct route to payee for unknown reasons. That's why we are relaxing the balance assertion to cater for the fees being substracted or not. This should be changed once #883 is fixed.
Receiving a payment can fail if we get it before a position got open. Ideally, we should move towards checking whether coordinator opened a position instead of doing a sleep.
bors r+ |
880: Add tests for receiving and paying invoices when position is open r=klochowicz a=klochowicz Add test coverage to a ticket that got recently closed - we should test that we can receive and send payments Also, return error in the API if a payment failed Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
Build failed: |
bors r+ |
880: Add tests for receiving and paying invoices when position is open r=klochowicz a=klochowicz Add test coverage to a ticket that got recently closed - we should test that we can receive and send payments Also, return error in the API if a payment failed Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
Build failed: |
It was just an early showcase of the framework.
20adf87
to
8fa4c86
Compare
bors r+ |
Was this test flaky - did you change something? |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
see your github notifications. it's the JIT payment feature being flaky - there's an open ticket to address it #883 |
The flaky test has nothing to do with #883 - It's the new test that has been added with that change that failed. @klochowicz given that the e2e tests are flaky like the "slow running" tests. Should we revert #888 ? |
Thanks for pointing this out :) |
IMHO ideally we should make them stable again - which means tidying up recent workarounds etc, and ensuring we always get properly funded. however, if it gets in the way of development, of course we can disable it on bors. |
what workarounds are you referring to? If its the additional mining when funding the app, we might be able to remove that, because of #913. But, that shouldn't have an impact on the flakiness of the tests.. On the contrary, I only added that to remove the flakiness of that test. |
FWIW, I've never seen any of these tests failing before the PRs with JIT channel fees got merged. This might be of course due to the flakiness of the test, but also it might be that we have a problem in our code. the other one which we should address, and was referring to was #893 - to exclude the possibility that it's the fault of the |
Add test coverage to a ticket that got recently closed - we should test that we can receive and send payments
Also, return error in the API if a payment failed