From 12b52c471a03c3214087b4b43af73550d5610d22 Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Tue, 24 Jan 2006 10:33:47 +0000 Subject: [PATCH] Attempted fix for file delete discrepancies between Windows and Linux git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2181 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/repo/content/AbstractContentReadWriteTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/content/AbstractContentReadWriteTest.java b/source/java/org/alfresco/repo/content/AbstractContentReadWriteTest.java index 62a5d96967..2eadf29e95 100644 --- a/source/java/org/alfresco/repo/content/AbstractContentReadWriteTest.java +++ b/source/java/org/alfresco/repo/content/AbstractContentReadWriteTest.java @@ -435,7 +435,6 @@ public abstract class AbstractContentReadWriteTest extends TestCase // with the stream open, attempt to delete the content boolean deleted = store.delete(contentUrl); - assertFalse("Should not be able to delete content with open write stream", deleted); // close the stream os.close(); @@ -443,6 +442,9 @@ public abstract class AbstractContentReadWriteTest extends TestCase // get a reader ContentReader reader = store.getReader(contentUrl); assertNotNull(reader); + // make sure that the underlying content still exists (the delete occured during a write) + assertTrue("Underlying content was deleted during a write", reader.exists()); + ContentReader readerCheck = writer.getReader(); assertNotNull(readerCheck); assertEquals("Store and write provided readers onto different URLs",