Improve representation of timed-out values (improve #257)
Change-Id: I2179b58ee62debcc541a80e5eac3443ad9ff11b9
diff --git a/t/query.t b/t/query.t
index 924cd73..0d909f4 100644
--- a/t/query.t
+++ b/t/query.t
@@ -286,7 +286,8 @@
$t->get_ok('/?q=timeout')
->status_is(200)
->text_like('#notifications div.notify-warn', qr!Response time exceeded!)
- ->text_is('#total-results', '> 4,274,841');
+ ->text_is('#total-results', ' 4,274,841')
+ ->text_is('#total-results span[title]', 'more than');
;
# Query with error
@@ -301,7 +302,8 @@
# ->text_like('#notifications div.notify-warning', qr!Response time exceeded!)
->element_exists("input#cq")
->element_exists_not("input#cq[value]")
- ->text_is('#total-results', '> 4,274,841');
+ ->text_is('#total-results', ' 4,274,841')
+ ->text_is('#total-results span[title]', 'more than');
;
$t->app->defaults(no_cache => 1);