Skip to content

Commit

Permalink
A small change in before() method to run equalsContract() test
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhBudhouliya committed Mar 6, 2020
1 parent 4cfc649 commit 0c41d45
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public class WipeWorkspaceTest extends GitSCMExtensionTest {

@Override
public void before() throws Exception {
repo = new TestGitRepo("repo", tmp.newFolder(), listener);
git = Git.with(listener, new EnvVars()).in(repo.gitDir).getClient();
// do nothing
}

@Override
Expand All @@ -37,6 +36,9 @@ protected GitSCMExtension getExtension() {
**/
@Test
public void testWipeWorkspace() throws Exception {
repo = new TestGitRepo("repo", tmp.newFolder(), listener);
git = Git.with(listener, new EnvVars()).in(repo.gitDir).getClient();

FreeStyleProject projectWithMaster = setupBasicProject(repo);
git.commit("First commit");
FreeStyleBuild build = build(projectWithMaster, Result.SUCCESS);
Expand Down

0 comments on commit 0c41d45

Please sign in to comment.