diff --git a/sdk-tests/src/test/java/io/dapr/it/state/AbstractStateClientIT.java b/sdk-tests/src/test/java/io/dapr/it/state/AbstractStateClientIT.java index 88e99fd48..60a5c51b9 100644 --- a/sdk-tests/src/test/java/io/dapr/it/state/AbstractStateClientIT.java +++ b/sdk-tests/src/test/java/io/dapr/it/state/AbstractStateClientIT.java @@ -430,19 +430,6 @@ public void saveUpdateAndGetStateWithWrongEtag() { Mono finalSaveResponse = saveResponse; assertThrows(RuntimeException.class, finalSaveResponse::block); - - response = daprClient.getState(STATE_STORE_NAME, new State<>(stateKey, (MyData) null, null), MyData.class); - //retrive the data wihout any etag - myDataResponse = response.block(); - - //review that state value changes - assertNotNull(myDataResponse.getEtag()); - //review that the etag changes after an update - assertNotEquals(firstETag, myDataResponse.getEtag()); - assertNotNull(myDataResponse.getKey()); - assertNotNull(myDataResponse.getValue()); - assertEquals("data in property A2", myDataResponse.getValue().getPropertyA()); - assertEquals("data in property B2", myDataResponse.getValue().getPropertyB()); } @Test @@ -515,15 +502,7 @@ public void saveAndDeleteStateWithWrongEtag() { //Create deferred action to delete an state sending the incorrect etag Mono deleteResponse = daprClient.deleteState(STATE_STORE_NAME, stateKey, "99999999999", null); //execute the delete of the state, this should throw an exception - assertThrows(RuntimeException.class, deleteResponse::block); - - //Create deferred action to get the state without an etag - response = daprClient.getState(STATE_STORE_NAME, new State<>(stateKey), MyData.class); - myDataResponse = response.block(); - - //Review that the response is null, because the state was deleted - assertNull(myDataResponse.getValue()); } @Test