Skip to content

Conversation

ujihisa
Copy link
Member

@ujihisa ujihisa commented Jan 21, 2020

  • I needed this to fix a flaky test, but after fixing the root cause instead,
    we no longer need to specify the timeout from each test case.
  • Not having many helper functions in the test increases the maintainability
  • I kept the timeout as a hard-coded local var instead of hard-coding into the logic as its original form,
    for the ease of debug in the future. The runtime cost is ignorable.

* I needed this to fix a flaky test, but after fixing the root cause instead,
  we no longer need to specify the timeout from each test case.
* Not having many helper functions in the test increases the maintainability
    * #713 (comment)
* I kept the `timeout` as a hard-coded local var instead of hard-coding into the logic as its original form,
  for the ease of debug in the future. The runtime cost is ignorable.
Copy link
Member

@lambdalisue lambdalisue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@ujihisa ujihisa merged commit b8641ed into master Jan 21, 2020
@ujihisa ujihisa deleted the refactor-async-promise-test branch January 21, 2020 01:57
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.

2 participants