Drop execution time from cache test

Sometimes this rounds to a non-zero value, which causes tests to fail
This commit is contained in:
Daniel Bachhuber 2016-11-03 06:21:17 -07:00
parent e2e54a91cf
commit 138e43d366

View file

@ -26,12 +26,12 @@ Feature: Profile arbitary code execution
Scenario: Profile calls to the object cache Scenario: Profile calls to the object cache
Given a WP install Given a WP install
When I run `wp profile eval 'wp_cache_get( "foo" );' --fields=time,cache_hits,cache_misses` When I run `wp profile eval 'wp_cache_get( "foo" );' --fields=cache_hits,cache_misses`
Then STDOUT should be a table containing rows: Then STDOUT should be a table containing rows:
| time | cache_hits | cache_misses | | cache_hits | cache_misses |
| 0s | 0 | 1 | | 0 | 1 |
When I run `wp profile eval 'wp_cache_set( "foo", "bar" ); wp_cache_get( "foo" ); wp_cache_get( "foo" );' --fields=time,cache_hits,cache_misses` When I run `wp profile eval 'wp_cache_set( "foo", "bar" ); wp_cache_get( "foo" ); wp_cache_get( "foo" );' --fields=cache_hits,cache_misses`
Then STDOUT should be a table containing rows: Then STDOUT should be a table containing rows:
| time | cache_hits | cache_misses | | cache_hits | cache_misses |
| 0s | 2 | 0 | | 2 | 0 |