[test] Fix a Windows-only test in CheckoutCommandTest

Test.txt should not be in the "removed" list if it can't be deleted
but only in the "not deleted" list. The test was wrong.

Bug: 550111
Change-Id: I3ecede4278014c15015c8c24089647fa3db3742f
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
This commit is contained in:
Thomas Wolf 2022-01-30 21:43:13 +01:00
parent f8eb530711
commit d4d30bc716
1 changed files with 1 additions and 1 deletions

View File

@ -868,7 +868,7 @@ public void testNonDeletableFilesOnWindows()
coCommand.setName(crudCommit.getName()).call();
CheckoutResult result = coCommand.getResult();
assertEquals(Status.NONDELETED, result.getStatus());
assertEquals("[Test.txt, toBeDeleted.txt]",
assertEquals("[toBeDeleted.txt]",
result.getRemovedList().toString());
assertEquals("[toBeCreated.txt, toBeModified.txt]",
result.getModifiedList().toString());