From 28b669983a70323e29168f12fef20cb9e306ea24 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Mon, 9 Oct 2023 12:27:16 -0400 Subject: [PATCH] Fix test_papi_v2_run_failure.tavern.yaml. --- .../runs/test_papi_v2_run_failure.tavern.yaml | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/robot-server/tests/integration/http_api/runs/test_papi_v2_run_failure.tavern.yaml b/robot-server/tests/integration/http_api/runs/test_papi_v2_run_failure.tavern.yaml index ac69366a693..14fbb483048 100644 --- a/robot-server/tests/integration/http_api/runs/test_papi_v2_run_failure.tavern.yaml +++ b/robot-server/tests/integration/http_api/runs/test_papi_v2_run_failure.tavern.yaml @@ -41,7 +41,7 @@ stages: strict: - json:off - - name: Wait for the protocol to complete + - name: Wait for the run to fail max_retries: 10 delay_after: 0.1 request: @@ -54,12 +54,24 @@ stages: json: data: status: failed + + - name: Verify the run contains the expected error + request: + url: '{ot2_server_base_url}/runs/{run_id}' + method: GET + response: + status_code: 200 + strict: + - json:off + json: + data: errors: - id: !anystr errorType: ExceptionInProtocolError createdAt: !anystr - detail: 'NoTipAttachedError [line 9]: Cannot perform PREPARE_ASPIRATE without a tip attached' + detail: 'UnexpectedTipRemovalError [line 9]: Error 3005 UNEXPECTED_TIP_REMOVAL (UnexpectedTipRemovalError): Cannot perform PREPARE_ASPIRATE without a tip attached.' errorCode: '4000' + errorInfo: !anydict wrappedErrors: !anylist - name: Verify commands contain the expected results @@ -82,7 +94,7 @@ stages: startedAt: !anystr completedAt: !anystr status: succeeded - params: { } + params: {} - id: !anystr key: !anystr commandType: loadLabware @@ -108,7 +120,7 @@ stages: mount: right - id: !anystr key: !anystr - commandType: aspirate + commandType: aspirate createdAt: !anystr startedAt: !anystr completedAt: !anystr @@ -117,8 +129,8 @@ stages: id: !anystr errorType: LegacyContextCommandError createdAt: !anystr - detail: 'Cannot perform PREPARE_ASPIRATE without a tip attached' - errorCode: '4000' + detail: 'Cannot perform PREPARE_ASPIRATE without a tip attached.' + errorCode: '3005' errorInfo: !anydict wrappedErrors: !anylist params: @@ -126,7 +138,7 @@ stages: labwareId: !anystr wellName: A1 wellLocation: - origin: top + origin: top offset: x: 0 y: 0