Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit

Permalink
Use the newer API on an old test
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurelol committed Dec 11, 2024
1 parent c7c7f2e commit 267b685
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,15 @@ abstract class UnityTaskIntegrationSpec<T extends UnityTask> extends UnityIntegr
@Unroll
def "unity #message #maxRetries times with #retryWait wait times when line in log matches #retryRegexes"() {
given:
def fakeUnity = createMockUnity(unityLog, 1)
def fakeUnityFile = fakeUnity.toDirectory(unityMainDirectory)
addUnityPathToExtension(fakeUnityFile.absolutePath)
// def fakeUnity = createMockUnity(unityLog, 1)
// def fakeUnityFile = fakeUnity.toDirectory(unityMainDirectory)
// addUnityPathToExtension(fakeUnityFile.absolutePath)

writeMockExecutable ({
it.withText(unityLog)
it.exitValue = 1
})

buildFile << """
$subjectUnderTestName {
maxRetries = ${wrapValue(maxRetries, Integer)}
Expand Down

0 comments on commit 267b685

Please sign in to comment.