Skip to content

Commit

Permalink
read resource string
Browse files Browse the repository at this point in the history
  • Loading branch information
itboy87 committed Jan 30, 2025
1 parent 847feb8 commit dc1f8c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ksoup-test/test/com/fleeksoft/ksoup/PerformanceTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.fleeksoft.ksoup

import korlibs.io.file.std.uniVfs
import kotlinx.coroutines.test.runTest
import kotlinx.datetime.Clock
import kotlin.test.Ignore
Expand All @@ -11,7 +10,7 @@ class PerformanceTest {
@Test
@Ignore
fun testFileParse() = runTest {
val data = TestHelper.getResourceAbsolutePath("test.txt").uniVfs.readString()
val data = TestHelper.readResource("test.txt").readAllBytes().decodeToString()
val timestamp = Clock.System.now().toEpochMilliseconds()
val doc = Ksoup.parse(data)
val selectTimeStamp = Clock.System.now().toEpochMilliseconds()
Expand Down

0 comments on commit dc1f8c1

Please sign in to comment.