Skip to content

Conversation

tigrannajaryan
Copy link
Member

  • Introduce TestCase.WaitFor function that waits until specified condition
    becomes true.
  • Make performance tests faster and reliable by waiting for spans to be received
    using WaitFor instead of fixed time period.
  • Introduce TestCase.Sleep function to reduce boilerplate in test cases.

- Introduce TestCase.WaitFor function that waits until specified condition
  becomes true.
- Make performance tests faster and reliable by waiting for spans to be received
  using WaitFor instead of fixed time period.
- Introduce TestCase.Sleep function to reduce boilerplate in test cases.
}

if time.Since(startTime) > time.Second*5 {
if time.Since(startTime) > time.Second*10 {
Copy link
Contributor

Choose a reason for hiding this comment

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

this feels like it should be a parameter but it can wait until a real case usage of different values

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, we can add it if needed. My past experience has been that it is needed very rarely and it is easier to make it a global settings to avoid specifying it for every waitfor.

@tigrannajaryan tigrannajaryan merged commit cebc629 into open-telemetry:master Jul 1, 2019
@tigrannajaryan tigrannajaryan deleted the feature/tigran/cleantests branch July 1, 2019 17:58
@flands flands added this to the 0.1.0 milestone Jul 1, 2019
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
…emetry#79)

* smart agent: break out reflection helpers

* smart agent: Adopt Endpoint field for receivercreator
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.

5 participants