Skip to content

Commit fd8753a

Browse files
committed
Fixed sometimes failing tests.
1 parent 7df7b42 commit fd8753a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/groovy/net/researchgate/release/ReleasePluginTests.groovy

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ class ReleasePluginTests extends Specification {
1818

1919
Project project
2020

21-
def testDir = new File("build/tmp/test/${getClass().simpleName}")
21+
File testDir = new File("build/tmp/test/${getClass().simpleName}")
2222

2323
def setup() {
24+
if (!testDir.exists()) {
25+
testDir.mkdirs()
26+
}
2427
project = ProjectBuilder.builder().withName('ReleasePluginTest').withProjectDir(testDir).build()
2528
def testVersionPropertyFile = project.file('version.properties')
2629
testVersionPropertyFile.withWriter { w ->

0 commit comments

Comments
 (0)