Skip to content

Commit

Permalink
test updated
Browse files Browse the repository at this point in the history
  • Loading branch information
itboy87 committed Dec 6, 2023
1 parent 22f0eae commit eeb11f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import okio.Path.Companion.toPath

object TestHelper {
fun getResourceAbsolutePath(resourceName: String): String {
return "/home/runner/work/ksoup/ksoup/ksoup/src/commonTest/resources/$resourceName"
val rootPath = if (Platform.current == PlatformType.IOS) {
"/Users/runner/work/ksoup/ksoup/ksoup"
} else {
"/home/runner/work/ksoup/ksoup/ksoup"
}
return "$rootPath/src/commonTest/resources/$resourceName"
// return "/Users/sabeeh/AndroidStudioProjects/ksoup/ksoup/src/commonTest/resources/$resourceName"
// return "../ksoup/src/commonTest/resources/$resourceName"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ParserIT {
// Assert
assertEquals(2, doc.body().childNodeSize())
assertEquals(25000, doc.select("dd").size)
assertTrue(System.currentTimeMillis() - start < 20000) // I get ~ 1.5 seconds, but others have reported slower
assertTrue(System.currentTimeMillis() - start < 40000) // I get ~ 1.5 seconds, but others have reported slower
// was originally much longer, or stack overflow.
}
}

0 comments on commit eeb11f8

Please sign in to comment.