Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Nov 28, 2024
1 parent b42572f commit b341a82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class TestPlugin implements Plugin<Project> {
def future = handler.daemonConnection.thenAccept { it.waitForAndProcessStop() }

// Stop the daemon
def result = DaemonUtils.stopWhenIdle(project)
def result = DaemonUtils.stopWhenIdle(DaemonUtils.Context.fromProject(project))

// Wait for the connection to be processed, this should have already happened, as the above call is blocking
future.join()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@

package net.fabricmc.loom.test.unit

import org.gradle.api.logging.LogLevel
import spock.lang.Specification

import net.fabricmc.loom.util.ProcessUtil
import spock.lang.Specification

class ProcessUtilTest extends Specification {
def "print process info"() {
when:
def output = new ProcessUtil(LogLevel.DEBUG).printWithParents(ProcessHandle.current())
def output = new ProcessUtil(ProcessUtil.ArgumentVisibility.SHOW_SENSITIVE).printWithParents(ProcessHandle.current())

then:
// Just a simple check to see if the output is not empty
Expand Down

0 comments on commit b341a82

Please sign in to comment.