Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Remove sleeps in integration test #165

Merged
merged 1 commit into from
Feb 17, 2017
Merged

Remove sleeps in integration test #165

merged 1 commit into from
Feb 17, 2017

Conversation

ijsnellf
Copy link
Contributor

@ijsnellf ijsnellf commented Feb 16, 2017

Replaces the sleep inside the integration tests with Envoy restart epoch checks that wait until the epoch has been incremented.

Also re-enables fault tests, since this change should make them more reliable.

return nil
}
time.Sleep(1 * time.Second)
n++
Copy link
Contributor

Choose a reason for hiding this comment

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

'n' is incremented twice per loop: once here and once in the 'for' post statement one line 465

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Contributor

@kyessenov kyessenov left a comment

Choose a reason for hiding this comment

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

LGTM. This is better than the wait, and is good enough for the routing test.
Please fix the nit and linter stuff (run bin/check.sh to see them) before merging.

@istio-testing
Copy link
Contributor

Jenkins job manager/presubmit passed

@ijsnellf ijsnellf changed the title [WIP] Remove sleeps in integration test Remove sleeps in integration test Feb 17, 2017
@istio-testing
Copy link
Contributor

Jenkins job manager/presubmit passed

@ijsnellf ijsnellf merged commit 6934ab5 into istio:master Feb 17, 2017
@ijsnellf ijsnellf deleted the remove_it_waits branch February 17, 2017 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants