From ab7223e58801c2c5e0d32202759fafc9c4475170 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Fri, 13 Dec 2019 16:38:07 +0100 Subject: [PATCH] chore(dev-server): Fix check condition in load test --- packages/dev-server/load-testing/scripts/search-and-checkout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dev-server/load-testing/scripts/search-and-checkout.js b/packages/dev-server/load-testing/scripts/search-and-checkout.js index 11b16b6d0c..78cb2b5918 100644 --- a/packages/dev-server/load-testing/scripts/search-and-checkout.js +++ b/packages/dev-server/load-testing/scripts/search-and-checkout.js @@ -31,7 +31,7 @@ export default function() { const data = getShippingMethodsQuery.post().data; const result = completeOrderMutation.post({ id: data.eligibleShippingMethods[0].id }).data; check(result, { - 'Order completed': r => r.addPaymentToOrder.state === 'PaymentSettled', + 'Order completed': r => r.addPaymentToOrder.state === 'PaymentAuthorized', }); }