Fix TestPermissionSymlinks.

Change-Id: Iab6145ea3ec2932f8ab594d71c0de36198c0141d
This commit is contained in:
Siyao Meng 2021-08-19 22:48:59 -07:00
parent 6f54c9ecde
commit 9c751079b6
1 changed files with 4 additions and 6 deletions

View File

@ -170,10 +170,8 @@ public class TestPermissionSymlinks {
}
});
// Make sure only the link was deleted
assertTrue("Target should not have been deleted!",
wrapper.exists(target));
assertFalse("Link should have been deleted!",
wrapper.exists(link));
assertTrue(wrapper.exists(target), "Target should not have been deleted!");
assertFalse(wrapper.exists(link), "Link should have been deleted!");
}
@Test(timeout = 5000)
@ -279,7 +277,7 @@ public class TestPermissionSymlinks {
return null;
}
});
assertTrue("Expected target to exist", wrapper.exists(target));
assertTrue(wrapper.exists(target), "Expected target to exist");
}
@Test(timeout = 5000)
@ -356,7 +354,7 @@ public class TestPermissionSymlinks {
return null;
}
});
assertTrue("Expected target to exist", wrapper.exists(target));
assertTrue(wrapper.exists(target), "Expected target to exist");
}
@Test(timeout = 5000)