Skip to content

Commit 2153f08

Browse files
committed
tests: disable fsync/fdatasync for rabbitmq (if any)
1 parent cd4955d commit 2153f08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/compose/docker_compose_rabbitmq.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ services:
2020
- /misc/rabbitmq/server-key.pem:/etc/rabbitmq/server-key.pem
2121
- /misc/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins
2222
# https://www.rabbitmq.com/docs/monitoring#health-checks
23+
# Run with strace to disable fsync/fdatasync for faster test execution
24+
command: sh -c "apk add --no-cache strace && exec strace -qq -f -e inject=fsync,fdatasync:retval=0 -e exit_group -e signal=9 docker-entrypoint.sh rabbitmq-server"
2325
healthcheck:
2426
test: rabbitmq-diagnostics -q ping
2527
interval: 10s

0 commit comments

Comments
 (0)