Skip to content

Commit

Permalink
Add a delay to starting Docker for integration tests
Browse files Browse the repository at this point in the history
Give the Docker container a bit more time to start up so we don't get
spurious failures.
  • Loading branch information
tgross35 committed May 7, 2024
1 parent 6da2d61 commit 749cc15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/validation-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ jobs:
-e RUST_LIB_BACKTRACE=1
--name mdb-example-container
mdb-example-so
&& sleep 4
# verify we started successfully
- run: mysql -uroot -pexample -h0.0.0.0 -P12300 --protocol=tcp -e 'show databases'
- name: Run integration testing
# Run only integration tests with `--test '*'`
run: cargo test -p udf-examples --test '*' --features backend
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.examples
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
&& mkdir /output \
&& cp target/release/libudf_examples.so /output

FROM mariadb:10.10
FROM mariadb:11.3

COPY --from=build /output/* /usr/lib/mysql/plugin/

0 comments on commit 749cc15

Please sign in to comment.