Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure fixed order in FindFileTimeDependentTest #77

Merged
merged 1 commit into from
Jan 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Ensure fixed order in FindFileTimeDependentTest
The order of tests run in `org.unix4j.unix.FindFileTimeDependentTest` needs to be ensured in case the defaults change in the future (as JUnit 4 reserves the right to do); otherwise `find_fileCreatedBeforeNow` might run after tests that cause the file being tested on to no longer have the correct creation date.

This issue was found and confirmed by [`iDFlakies`](https://github.com/iDFlakies/iDFlakies).
  • Loading branch information
pthariensflame authored Nov 25, 2021
commit 0af9b8114fcf4e05e2bf805b27e4370ffe97756d
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
import java.util.Date;

import org.junit.BeforeClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import org.unix4j.Unix4j;
import org.unix4j.context.DefaultExecutionContext;
import org.unix4j.context.ExecutionContext;
import org.unix4j.context.ExecutionContextFactory;

//@Ignore
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class FindFileTimeDependentTest {

/**
Expand Down