Skip to content

Commit

Permalink
feat!: switch to fallible API (#636)
Browse files Browse the repository at this point in the history
Closes #606

## Migration guide
- The easiest way to use `unwrap` or `expect` for all `testcontainers`
operations.
  - or you can cast error if your tests are already `Result` based
- The `Image::exec_after_start` method returns a `Result`, so if you
have an implementation of `Image` that uses `exec_after_start`, it's
important to handle possible errors (e.g required port not found)
  • Loading branch information
DDtKey authored May 26, 2024
1 parent 3736fbd commit d51b9a0
Show file tree
Hide file tree
Showing 23 changed files with 801 additions and 609 deletions.
1 change: 1 addition & 0 deletions testcontainers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ watchdog = ["signal-hook", "conquer-once"]
properties-config = ["serde-java-properties"]

[dev-dependencies]
anyhow = "1.0.86"
pretty_env_logger = "0.5"
reqwest = { version = "0.12.3", features = ["blocking"] }
testimages.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion testcontainers/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ pub use self::{
mounts::{AccessMode, Mount, MountType},
};

pub mod errors;
mod image;

pub(crate) mod client;
pub(crate) mod containers;
pub(crate) mod env;
pub mod error;
pub(crate) mod logs;
pub(crate) mod macros;
pub(crate) mod mounts;
Expand Down
Loading

0 comments on commit d51b9a0

Please sign in to comment.