Skip to content

Commit 96665a3

Browse files
committed
updated test for default size command
1 parent 18457ba commit 96665a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/db-size.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: Display database size
55
Scenario: Display only database size for a WordPress install
66
Given a WP install
77

8-
When I run `wp db query "SELECT SUM(data_length + index_length) FROM information_schema.TABLES where table_schema = 'wp_cli_test' GROUP BY table_schema;"`
8+
When I run `wp db query "SELECT CEILING( SUM(data_length + index_length) / 1024 ) as Size FROM information_schema.TABLES where table_schema = 'wp_cli_test' GROUP BY table_schema;"`
99
Then save STDOUT '(\d+)' as {DBSIZE}
1010

1111
When I run `wp db size`
@@ -16,7 +16,7 @@ Feature: Display database size
1616

1717
And STDOUT should contain:
1818
"""
19-
KB {DBSIZE}
19+
{DBSIZE} KB
2020
"""
2121

2222
Scenario: Display only table sizes for a WordPress install

0 commit comments

Comments
 (0)