Skip to content

Commit

Permalink
[test] teardown deleted the wrong directory
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Kriens <peter.kriens@aqute.biz>
  • Loading branch information
pkriens committed Mar 3, 2015
1 parent ecb5c7a commit 9c710ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions biz.aQute.bndlib.tests/src/test/LocationTest.java
Expand Up @@ -11,16 +11,17 @@

public class LocationTest extends TestCase {
Workspace ws;
private File tmp;

public void setUp() throws Exception {
File tmp = IO.getFile("generated/tmp");
tmp = IO.getFile("generated/tmp");
IO.copy(IO.getFile("testresources/ws-location"), tmp);
ws = new Workspace(tmp);

}

public void tearDown() throws Exception {
IO.delete(new File("tmp"));
IO.delete(tmp);
}

public void testMerged() throws Exception {
Expand Down

0 comments on commit 9c710ab

Please sign in to comment.