Skip to content

Commit 187e813

Browse files
committed
[FOLLOWUP][SPARK-32121][SHUFFLE][TEST] fix checkstyle
1 parent e8ea16a commit 187e813

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/ExternalShuffleBlockResolverSuite.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,18 @@ public void jsonSerializationOfExecutorRegistration() throws IOException {
146146

147147
@Test
148148
public void testNormalizeAndInternPathname() {
149-
assertPathsMatch("/foo", "bar", "baz", File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
150-
assertPathsMatch("//foo/", "bar/", "//baz", File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
151-
assertPathsMatch("foo", "bar", "baz///", "foo" + File.separator + "bar" + File.separator + "baz");
152-
assertPathsMatch("/foo/", "/bar//", "/baz", File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
153-
assertPathsMatch("/", "", "", File.separator);
154-
assertPathsMatch("/", "/", "/", File.separator);
149+
assertPathsMatch("/foo", "bar", "baz",
150+
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
151+
assertPathsMatch("//foo/", "bar/", "//baz",
152+
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
153+
assertPathsMatch("foo", "bar", "baz///",
154+
"foo" + File.separator + "bar" + File.separator + "baz");
155+
assertPathsMatch("/foo/", "/bar//", "/baz",
156+
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
157+
assertPathsMatch("/", "", "",
158+
File.separator);
159+
assertPathsMatch("/", "/", "/",
160+
File.separator);
155161
}
156162

157163
private void assertPathsMatch(String p1, String p2, String p3, String expectedPathname) {

0 commit comments

Comments
 (0)