Skip to content

Commit 445010d

Browse files
committed
[Java] Remove test due to limited value and no viable solution for Windows. Issue aeron-io#499.
1 parent f32a626 commit 445010d

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

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

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
package uk.co.real_logic.sbe.generation.rust;
22

3-
import org.junit.Assume;
4-
import org.junit.Ignore;
53
import org.junit.Rule;
64
import org.junit.Test;
75
import org.junit.rules.TemporaryFolder;
86

97
import java.io.File;
10-
import java.io.IOException;
118
import java.io.Writer;
129
import java.nio.charset.StandardCharsets;
1310
import java.nio.file.FileSystems;
@@ -63,36 +60,6 @@ public void nullPackageParamThrowsNpe()
6360
new RustFlatFileOutputManager(folderRule.getRoot().getAbsolutePath(), null);
6461
}
6562

66-
@Ignore
67-
@Test(expected = IllegalStateException.class)
68-
public void shouldThrowExceptionIfTargetDirNotWritable() throws IOException, InterruptedException
69-
{
70-
final File tempDir = folderRule.newFolder();
71-
Assume.assumeTrue(tempDir.setReadOnly());
72-
final String tempDirName = tempDir.getAbsolutePath();
73-
74-
try
75-
{
76-
new RustFlatFileOutputManager(tempDirName, PACKAGE_NAME);
77-
}
78-
catch (final IllegalStateException ex)
79-
{
80-
int waitCount = 0;
81-
boolean writable;
82-
do
83-
{
84-
writable = tempDir.setWritable(true);
85-
Thread.sleep(100);
86-
waitCount += 1;
87-
}
88-
while (!writable && waitCount < 10);
89-
90-
throw ex;
91-
}
92-
93-
fail("should be unreachable");
94-
}
95-
9663
private static String getExpectedFullFileName(final String tempDirName)
9764
{
9865
return (tempDirName.endsWith("" + File.separatorChar) ? tempDirName : tempDirName + File.separatorChar) +

0 commit comments

Comments
 (0)