Skip to content

Commit

Permalink
Use common FileSystem.SYSTEM property (#1482)
Browse files Browse the repository at this point in the history
This expect/actual pre-dates the commonization of the property.
  • Loading branch information
JakeWharton authored Dec 19, 2024
1 parent f24c7b7 commit 4e17ecc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import app.cash.zipline.QuickJs
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Test
import okio.FileSystem
import okio.Path.Companion.toPath
import okio.SYSTEM
import okio.use

internal class SamplingProfilerTest {
Expand Down Expand Up @@ -128,7 +130,7 @@ internal class SamplingProfilerTest {
/** This test just confirms the sampling profiler completes normally. */
@Test
fun happyPath() {
quickJs.startCpuSampling(SYSTEM_FILESYSTEM, "fibonacci.hprof".toPath()).use {
quickJs.startCpuSampling(FileSystem.SYSTEM, "fibonacci.hprof".toPath()).use {
for (i in 0 until 100) {
quickJs.evaluate("""fib20()""".trimMargin())
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 4e17ecc

Please sign in to comment.