diff options
author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-09-24 11:47:28 +0200 |
---|---|---|
committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-09-24 11:48:47 +0200 |
commit | 0cb95e7b55e3586971f0168824b2c8092836787b (patch) | |
tree | d29ef5da0fb08c8bbeec63eb59bf351cfca8843a /deps/rabbitmq_cli/test/diagnostics | |
parent | d5ba3e32debcb9c6244697d79d7a8ea05eb8dc35 (diff) | |
download | rabbitmq-server-git-0cb95e7b55e3586971f0168824b2c8092836787b.tar.gz |
log_tail_stream_command_test: Bump stream duration to 15 seconds
... from 5 seconds. Hopefully this will increase the chance of seeing
the messages logged by the testcase.
Diffstat (limited to 'deps/rabbitmq_cli/test/diagnostics')
-rw-r--r-- | deps/rabbitmq_cli/test/diagnostics/log_tail_stream_command_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/rabbitmq_cli/test/diagnostics/log_tail_stream_command_test.exs b/deps/rabbitmq_cli/test/diagnostics/log_tail_stream_command_test.exs index 08b9068102..c370b011af 100644 --- a/deps/rabbitmq_cli/test/diagnostics/log_tail_stream_command_test.exs +++ b/deps/rabbitmq_cli/test/diagnostics/log_tail_stream_command_test.exs @@ -62,7 +62,7 @@ defmodule LogTailStreamCommandTest do ensure_log_file() time_before = System.system_time(:second) - stream = @command.run([], Map.merge(context[:opts], %{duration: 5})) + stream = @command.run([], Map.merge(context[:opts], %{duration: 15})) :rpc.call(get_rabbit_hostname(), :rabbit_log, :error, ["Message"]) :rpc.call(get_rabbit_hostname(), :rabbit_log, :error, ["Message1"]) :rpc.call(get_rabbit_hostname(), :rabbit_log, :error, ["Message2"]) @@ -79,9 +79,9 @@ defmodule LogTailStreamCommandTest do assert String.match?(data, ~r/Message3/) time_spent = time_after - time_before - assert time_spent > 5 + assert time_spent > 15 # This my take longer then duration but not too long - assert time_spent < 30 + assert time_spent < 45 end test "run: may return an error if there is no log", context do |