Skip to content

Conversation

@RmbRT
Copy link
Contributor

@RmbRT RmbRT commented Feb 8, 2022

  • Stabilise reorg resistant subscription tests, although it does not cause the inherent problem that caused the tests to fail. Fixing that would be way more involved.
  • Fix bug in Adjudicator test: challenge duration (is used as timeout for the funding transactions) was selected in [0,3600), fixed to [200,3600) now, to guarantee enough time for funding.

@RmbRT RmbRT force-pushed the fix-ci-fails branch 5 times, most recently from f8f1e27 to 140aa19 Compare February 9, 2022 14:21
@RmbRT RmbRT requested a review from matthiasgeihs February 9, 2022 14:23
RmbRT added 3 commits February 9, 2022 16:47
Removed an impossible error condition check and the associated log call.
sync.Closer can only ever return nil or "already closed", while the
removed code checked for a third error and tried to log that.

I think this was caused in an attempt to please the pedantic linter.
Issue #211 addresses the trouble with using the sync.Closer, as its
intended usage clashes with go's idioms and conventions. In retrospect,
I think I should have anticipated this problem and designed the Closer
differently from the beginning.

Signed-off-by: Steffen Rattay <steffen@perun.network>
Closes #320.

This fixes test failures where unwanted blocks were mined quite a bit
after StopMining() was called, resulting in wrong timelines.

Signed-off-by: Steffen Rattay <steffen@perun.network>
The adjudicator test has a funding timeout of one challenge duration
(measured in blocks), but the challenge duration was in the range
[0, 3600). Now, it is generated in the range[200, 3600).

Issue #239 (adding a designated funding timeout parameter) would solve
this problem in a cleaner way, however, the implementation concept is
still unclear.

Signed-off-by: Steffen Rattay <steffen@perun.network>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants