瀏覽代碼

Docs test: defend against round numbers

If a shard has a nice, round number the test in the `_cat/shards`
reference file would fail. They should be ok with it. A failure:
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.3+multijob-unix-compatibility/os=fedora/93/console
Nik Everett 8 年之前
父節點
當前提交
0b20a59391
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/reference/cat/shards.asciidoc

+ 1 - 1
docs/reference/cat/shards.asciidoc

@@ -21,7 +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/31.1/\\d+(\.\\d+)?/]
 // TESTRESPONSE[s/mb/.*/]
 // TESTRESPONSE[s/192.168.56.10/.*/]
 // TESTRESPONSE[s/H5dfFeA/node-0/ _cat]