Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import org.apache.zeppelin.display.{AngularObject, AngularObjectRegistry, GUI}
import org.apache.zeppelin.interpreter._
import org.apache.zeppelin.user.AuthenticationInfo
import org.scalatest.concurrent.Eventually
import org.scalatest.time.{Seconds, Span}
import org.scalatest.{BeforeAndAfter, BeforeAndAfterEach, FlatSpec, Matchers}

/**
Expand Down Expand Up @@ -61,12 +62,12 @@ trait AbstractAngularElemTest
// click create thread for callback function to run. So it'll may not immediately invoked
// after click. therefore eventually should be
click(elem)
eventually {
eventually (timeout(Span(5, Seconds))) {
a should be(1)
}

click(elem)
eventually {
eventually (timeout(Span(5, Seconds))) {
a should be(2)
}

Expand Down Expand Up @@ -120,7 +121,7 @@ trait AbstractAngularElemTest

click(elem)

eventually { modelValue should be("value")}
eventually (timeout(Span(5, Seconds))) { modelValue should be("value")}
}


Expand Down