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 | e12d53601aa45c4624dd9f8ff8f4c40e58ca7b84 (patch) | |
| tree | 420d5f11d377c78787516efccc88291298b4e9b5 | |
| parent | ca1ad94464bde375a054162e2ee91a688ab9e7dd (diff) | |
| download | rabbitmq-server-git-e12d53601aa45c4624dd9f8ff8f4c40e58ca7b84.tar.gz | |
Bump sleep times during tests to 100ms.
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 524e8e6edd..6cb0dbf471 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 150235da9b..84c4121c9a 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), |
