Skip to content

Commit

Permalink
use project lifetime in test
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 committed Jun 7, 2021
1 parent 8a3e726 commit 57a5ba3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package typeProviders

import com.jetbrains.rd.platform.util.lifetime
import com.jetbrains.rd.util.lifetime.Lifetime
import com.jetbrains.rdclient.testFramework.waitForDaemon
import com.jetbrains.rdclient.util.idea.waitAndPump
Expand Down Expand Up @@ -29,7 +30,7 @@ class TypeProvidersActionsTest : BaseTestWithSolution() {
private val rdFcsHost get() = project.solution.rdFSharpModel.fsharpTestHost

private fun waitForTypeProviders() {
waitAndPump(Lifetime.Eternal, { rdFcsHost.typeProvidersRuntimeVersion.sync(Unit) != null }, Duration.ofSeconds(60000))
waitAndPump(project.lifetime, { rdFcsHost.typeProvidersRuntimeVersion.sync(Unit) != null }, Duration.ofSeconds(60000))
}

@Test
Expand Down

0 comments on commit 57a5ba3

Please sign in to comment.