Skip to content

Commit 54ee93c

Browse files
authored
Merge pull request #502 from ZackPierce/rust_test_resilience
Use assumeTrue to confirm filesystem manipulation for output manager testing usable
2 parents db8c4e4 + 22aae2a commit 54ee93c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/rust/RustFlatFileOutputManagerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package uk.co.real_logic.sbe.generation.rust;
22

3+
import org.junit.Assume;
34
import org.junit.Ignore;
45
import org.junit.Rule;
56
import org.junit.Test;
@@ -67,7 +68,7 @@ public void nullPackageParamThrowsNpe()
6768
public void shouldThrowExceptionIfTargetDirNotWritable() throws IOException, InterruptedException
6869
{
6970
final File tempDir = folderRule.newFolder();
70-
assertTrue(tempDir.setReadOnly());
71+
Assume.assumeTrue(tempDir.setReadOnly());
7172
final String tempDirName = tempDir.getAbsolutePath();
7273

7374
try

0 commit comments

Comments
 (0)