Make TestAsyncUtil serializable (#493)

Every now and then the Scalatest framework
has crashed when reporting errors, with
failure to serialize this. There should
be no downside to having the trait here,
and we avoid the nasty Scalatest failure.
This commit is contained in:
Torkel Rogstad 2019-06-05 14:18:17 +02:00 committed by Chris Stewart
parent a3dd824e57
commit 49ffbea801

View File

@ -6,7 +6,9 @@ import org.scalatest.exceptions.{StackDepthException, TestFailedException}
import scala.concurrent.{ExecutionContext, Future} import scala.concurrent.{ExecutionContext, Future}
import scala.concurrent.duration.FiniteDuration import scala.concurrent.duration.FiniteDuration
abstract class TestAsyncUtil extends org.bitcoins.rpc.util.AsyncUtil { abstract class TestAsyncUtil
extends org.bitcoins.rpc.util.AsyncUtil
with Serializable {
override protected def retryUntilSatisfiedWithCounter( override protected def retryUntilSatisfiedWithCounter(
conditionF: () => Future[Boolean], conditionF: () => Future[Boolean],
duration: FiniteDuration, duration: FiniteDuration,