Skip to content

Commit

Permalink
Correctly merge in upstream testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed Jul 28, 2023
1 parent b236213 commit c153bdb
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/container_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ def test_wait_for_ready(main_container):

def test_wait_for_exits(dockerc, main_container, version_container):
"""Wait for containers to exit."""
<<<<<<< HEAD
assert (
main_container.wait() == 1
), "Container service (main) did not exit with expected error"
=======
>>>>>>> a9d6c92ea3ca2760e4a18276d06c668058dd3670
assert (
dockerc.wait(main_container.id) == 0
), "Container service (main) did not exit cleanly"
Expand All @@ -54,16 +48,10 @@ def test_wait_for_exits(dockerc, main_container, version_container):

def test_output(dockerc, main_container):
"""Verify the container had the correct output."""
<<<<<<< HEAD
main_container.wait() # make sure container exited if running test isolated
log_output = main_container.logs().decode("utf-8")
assert TOKEN_ERROR_MESSAGE in log_output, "Message not found in log output."
=======
# make sure container exited if running test isolated
dockerc.wait(main_container.id)
log_output = main_container.logs()
assert SECRET_QUOTE in log_output, "Secret not found in log output."
>>>>>>> a9d6c92ea3ca2760e4a18276d06c668058dd3670
assert TOKEN_ERROR_MESSAGE in log_output, "Message not found in log output."


@pytest.mark.skipif(
Expand Down

0 comments on commit c153bdb

Please sign in to comment.