Skip to content

Commit 7fcc908

Browse files
committed
Tests are flaky - at least improving test with CompilerErrors
1 parent e62d64f commit 7fcc908

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/net/openhft/compiler/CompilerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void write(int b) throws IOException {
165165
}));
166166

167167
CompilerUtils.CACHED_COMPILER.loadFromJava(
168-
getClass().getClassLoader(), "TestClass", "clazz TestClass {}",
168+
getClass().getClassLoader(), "TestClazz", "clazz TestClazz {}",
169169
new PrintWriter(writer));
170170
fail("Should have failed to compile");
171171
} catch (ClassNotFoundException e) {
@@ -179,7 +179,7 @@ public void write(int b) throws IOException {
179179
assertFalse(usedSysErr.get());
180180

181181
List<String> expectedInErrorFromCompiler = Arrays.asList(
182-
"TestClass.java:1: error", "clazz TestClass {}");
182+
"TestClazz.java:1: error", "clazz TestClazz {}");
183183

184184
for (String expectedError : expectedInErrorFromCompiler) {
185185
String errorMessage = String.format("Does not contain expected '%s' in:\n%s", expectedError, writer.toString());

0 commit comments

Comments
 (0)