diff options
author | Piotr Sikora <piotr.sikora@frickle.com> | 2011-04-29 05:43:20 +0000 |
---|---|---|
committer | Piotr Sikora <piotr.sikora@frickle.com> | 2011-04-29 05:43:20 +0000 |
commit | 91a8dc7db00173ee792db631ab6a181566f8c8d5 (patch) | |
tree | 420d5f11d377c78787516efccc88291298b4e9b5 | |
parent | c75b4aaebf0fb1ade23f4fb501584f27acc8c829 (diff) | |
download | rabbitmq-server-bug24067.tar.gz |
Bump sleep times during tests to 100ms.bug24067
This fixes timing issues I was seeing on OpenBSD. Solution pointed
out by Matthew Sackman.
-rw-r--r-- | src/rabbit_tests.erl | 2 | ||||
-rw-r--r-- | src/test_sup.erl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index 524e8e6e..6cb0dbf4 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -1553,7 +1553,7 @@ test_logs_working(MainLogFile, SaslLogFile) -> ok = rabbit_log:error("foo bar"), ok = error_logger:error_report(crash_report, [foo, bar]), %% give the error loggers some time to catch up - timer:sleep(50), + timer:sleep(100), [true, true] = non_empty_files([MainLogFile, SaslLogFile]), ok. diff --git a/src/test_sup.erl b/src/test_sup.erl index 150235da..84c4121c 100644 --- a/src/test_sup.erl +++ b/src/test_sup.erl @@ -33,10 +33,10 @@ test_supervisor_delayed_restart() -> test_supervisor_delayed_restart(SupPid) -> ok = ping_child(SupPid), ok = exit_child(SupPid), - timer:sleep(10), + timer:sleep(100), ok = ping_child(SupPid), ok = exit_child(SupPid), - timer:sleep(10), + timer:sleep(100), timeout = ping_child(SupPid), timer:sleep(1010), ok = ping_child(SupPid), |