Skip to content

[Cache] Skip tests that sleep() but can't be clock-mocked #19544

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

Merged
merged 1 commit into from
Aug 5, 2016

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.1
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Skip tests that require real calls to sleep(): they slow down the test suite too much and don't test much.
@group time-sensitive tests will run these test cases just fine, but they can't be used on tests that use an external source for time, i.e. for redis or apcu.

@nicolas-grekas nicolas-grekas merged commit d476725 into symfony:3.1 Aug 5, 2016
nicolas-grekas added a commit that referenced this pull request Aug 5, 2016
…d (nicolas-grekas)

This PR was merged into the 3.1 branch.

Discussion
----------

[Cache] Skip tests that sleep() but can't be clock-mocked

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Skip tests that require real calls to `sleep()`: they slow down the test suite too much and don't test much.
`@group time-sensitive` tests will run these test cases just fine, but they can't be used on tests that use an external source for time, i.e. for redis or apcu.

Commits
-------

d476725 [Cache] Skip tests that sleep() but can't be clock-mocked
@nicolas-grekas nicolas-grekas deleted the cache-skip branch August 5, 2016 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants