Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
forgot to update test for async->future
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jan 21, 2017
1 parent c53b0e8 commit 956181c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.github.sanity'
version '0.0.13'
version '0.0.14'

buildscript {
ext.kotlin_version = '1.1.0-beta-17'
Expand Down
6 changes: 3 additions & 3 deletions src/test/kotlin/com/github/sanity/kweb/PhantomJSSpec.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import com.github.sanity.kweb.dom.element.creation.set
import com.github.sanity.kweb.dom.element.read.read
import com.moodysalem.phantomjs.wrapper.PhantomJS
import io.kotlintest.specs.FreeSpec
import kotlinx.coroutines.async
import kotlinx.coroutines.await
import kotlinx.coroutines.experimental.future.await
import kotlinx.coroutines.experimental.future.future
import java.nio.charset.StandardCharsets
import java.nio.file.Files
import java.nio.file.Paths
Expand Down Expand Up @@ -44,7 +44,7 @@ class PhantomJSSpec : FreeSpec() {
"test various server-browser interactions" {
KWeb(7324) {
with(doc.body) {
async {
future {
val h1 = h1(attributes = attr.classes("testing").set("data-test", "abacus"))
h1.read.attribute("data-test").await() shouldBe "abacus"

Expand Down

0 comments on commit 956181c

Please sign in to comment.