Skip to content

Commit

Permalink
Merge branch 'main' into code-freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
ajberdy authored Oct 30, 2023
2 parents c75b9f5 + d10497a commit 2d85b33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/integ_tests/job_test_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def start_here():

def failed_job_script():
print("Test job started!!!!!")
assert 0
open("fake_file")


def completed_job_script():
Expand Down
7 changes: 4 additions & 3 deletions test/integ_tests/test_create_quantum_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,17 @@ def test_failed_quantum_job(aws_session, capsys):
"braket_container.py",
"Running Code As Process",
"Test job started!!!!!",
"AssertionError",
"FileNotFoundError: [Errno 2] No such file or directory: 'fake_file'",
"Code Run Finished",
'"user_entry_point": "braket_container.py"',
]

for data in logs_to_validate:
assert data in log_data

assert job.metadata()["failureReason"].startswith(
"AlgorithmError: Job at job_test_script:start_here"
assert job.metadata()["failureReason"] == (
"AlgorithmError: FileNotFoundError: [Errno 2] "
"No such file or directory: 'fake_file', exit code: 1"
)


Expand Down

0 comments on commit 2d85b33

Please sign in to comment.