From a0df28808f17b4020039a12834f439362eab7f66 Mon Sep 17 00:00:00 2001 From: Russ Poetker Date: Tue, 13 Feb 2024 15:25:05 -0500 Subject: [PATCH] Update tests --- .../org/eclipse/pass/support/client/JsonApiPassClientIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pass-data-client/src/test/java/org/eclipse/pass/support/client/JsonApiPassClientIT.java b/pass-data-client/src/test/java/org/eclipse/pass/support/client/JsonApiPassClientIT.java index 26d0b214..2b1e812d 100644 --- a/pass-data-client/src/test/java/org/eclipse/pass/support/client/JsonApiPassClientIT.java +++ b/pass-data-client/src/test/java/org/eclipse/pass/support/client/JsonApiPassClientIT.java @@ -179,7 +179,7 @@ public void testUpdateObject_OptimisticLock_Submission() throws IOException { assertTrue(ioException.getMessage().contains("Update failed: http://localhost:8080/data/submission/")); assertTrue(ioException.getMessage().contains( "returned 409 {\"errors\":[{\"detail\":\"Optimistic lock check failed for Submission [ID=")); - assertTrue(ioException.getMessage().contains("Request version: 0, Stored version: 1\"}]}")); + assertTrue(ioException.getMessage().contains("Request version: 1, Stored version: 2\"}]}")); Submission updateSubmission3 = client.getObject(Submission.class, sub.getId()); assertEquals("Name", updateSubmission3.getSubmitterName()); @@ -208,7 +208,7 @@ public void testUpdateObject_OptimisticLock_Deposit() throws IOException { assertTrue(ioException.getMessage().contains("Update failed: http://localhost:8080/data/deposit/")); assertTrue(ioException.getMessage().contains( "returned 409 {\"errors\":[{\"detail\":\"Optimistic lock check failed for Deposit [ID=")); - assertTrue(ioException.getMessage().contains("Request version: 0, Stored version: 1\"}]}")); + assertTrue(ioException.getMessage().contains("Request version: 1, Stored version: 2\"}]}")); Deposit updateDeposit3 = client.getObject(Deposit.class, deposit.getId()); assertEquals(DepositStatus.FAILED, updateDeposit3.getDepositStatus());