提交 80f78d57 编写于 作者: T tfennelly

Fixing dir listing in test to not be case sensitive (related to JENKINS-24317)

上级 f39c435f
......@@ -231,7 +231,10 @@ public class UserTest {
assertEquals("Bob Smith", bob.getFullName());
assertEquals("Bob Smith", User.get("Bob").getFullName());
assertEquals("nonexistent", User.get("nonexistent").getFullName());
assertEquals("[bob]", Arrays.toString(new File(j.jenkins.getRootDir(), "users").list()));
// users/Bob is what exists in migration.zip, so lowercasing dir list to make sure the test
// is not case sensitive.
assertEquals("[bob]", Arrays.toString(new File(j.jenkins.getRootDir(), "users").list()).toLowerCase());
}
@Test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册