Skip to content

Commit

Permalink
fix: condition
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey committed Jul 7, 2024
1 parent 77eecc8 commit 717203a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcontainers/src/core/wait/exit_strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl WaitStrategy for ExitWaitStrategy {

if let Some(expected_code) = self.expected_code {
let exit_code = container_state.exit_code;
if exit_code == Some(expected_code) {
if exit_code != Some(expected_code) {
return Err(WaitContainerError::UnexpectedExitCode {
expected: expected_code,
actual: exit_code,
Expand Down

0 comments on commit 717203a

Please sign in to comment.