Skip to content

Commit

Permalink
Fix broken IdlClassTest on Bazel's CI.
Browse files Browse the repository at this point in the history
JUnit 4.12 has a regression in which you're no longer allowed to pass folder names with a path separator to TemporaryFolder.newFolder().

PiperOrigin-RevId: 214252970
  • Loading branch information
philwo authored and Copybara-Service committed Sep 24, 2018
1 parent e0f62b7 commit c1a7b4c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ public void idlClass() throws IOException {
}

tempFolder.newFolder("c");
tempFolder.newFolder("c/g");
tempFolder.newFolder("c", "g");
tempFolder.newFolder("wrong");
tempFolder.newFolder("wrong/source");
tempFolder.newFolder("wrong/source/dir");
tempFolder.newFolder("wrong", "source");
tempFolder.newFolder("wrong", "source", "dir");
for (String file : Arrays.asList("c/g/Foo.java", "c/g/Bar.java", "wrong/source/dir/Baz.java")) {
tempFolder.newFile(file);
}
Expand Down

0 comments on commit c1a7b4c

Please sign in to comment.