Doc test: use propery regex for file size
The _cat/shards docs asserted that one of the columns looked like a propery byte size but used a regex like `\d+\.\d+.*` which doesn't match `0b` which is a possible value. Instead this uses `\d(\.\d+)?[kmg]?b`.
This commit is contained in:
parent
735986c140
commit
ae0290bae9
|
@ -21,8 +21,7 @@ This will return
|
|||
twitter 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
|
||||
---------------------------------------------------------------------------
|
||||
// TESTRESPONSE[s/3014/\\d+/]
|
||||
// TESTRESPONSE[s/31.1/\\d+(\.\\d+)?/]
|
||||
// TESTRESPONSE[s/mb/.*/]
|
||||
// TESTRESPONSE[s/31.1mb/\\d+(\.\\d+)?[kmg]?b/]
|
||||
// TESTRESPONSE[s/192.168.56.10/.*/]
|
||||
// TESTRESPONSE[s/H5dfFeA/node-0/ _cat]
|
||||
|
||||
|
@ -48,8 +47,7 @@ Which will return the following
|
|||
twitter 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
|
||||
---------------------------------------------------------------------------
|
||||
// TESTRESPONSE[s/3014/\\d+/]
|
||||
// TESTRESPONSE[s/31.1/\\d+\.\\d+/]
|
||||
// TESTRESPONSE[s/mb/.*/]
|
||||
// TESTRESPONSE[s/31.1mb/\\d+(\.\\d+)?[kmg]?b/]
|
||||
// TESTRESPONSE[s/192.168.56.10/.*/]
|
||||
// TESTRESPONSE[s/H5dfFeA/node-0/ _cat]
|
||||
|
||||
|
|
Loading…
Reference in New Issue