Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit c597318

Browse files
authored
Merge pull request #193 from xuwei-k/update-specs2
update specs2 3.8.5
2 parents 4699c5c + 42ea621 commit c597318

File tree

7 files changed

+11
-4
lines changed

7 files changed

+11
-4
lines changed

db-async-common/src/test/scala/com/github/mauricio/async/db/pool/AbstractAsyncObjectPoolSpec.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import scala.util.Failure
1010

1111
import scala.reflect.runtime.universe.TypeTag
1212
import scala.util.Try
13-
import scala.concurrent.duration.{Duration, SECONDS}
13+
import scala.concurrent.ExecutionContext.Implicits.global
14+
import scala.concurrent.duration._
1415

1516
/**
1617
* This spec is designed abstract to allow testing of any implementation of AsyncObjectPool, against the common

db-async-common/src/test/scala/com/github/mauricio/async/db/pool/TimeoutSchedulerSpec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package com.github.mauricio.async.db.pool
1818
import java.util.concurrent.{ScheduledFuture, TimeoutException}
1919
import com.github.mauricio.async.db.util.{ByteBufferUtils, ExecutorServiceUtils}
2020
import org.specs2.mutable.SpecificationWithJUnit
21+
import scala.concurrent.ExecutionContext.Implicits.global
2122
import scala.concurrent.duration._
2223
import scala.concurrent.{Future, Promise}
2324

mysql-async/src/test/scala/com/github/mauricio/async/db/mysql/StoredProceduresSpec.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package com.github.mauricio.async.db.mysql
1919
import com.github.mauricio.async.db.ResultSet
2020
import com.github.mauricio.async.db.util.FutureUtils._
2121
import org.specs2.mutable.Specification
22+
import scala.concurrent.ExecutionContext.Implicits.global
2223

2324
class StoredProceduresSpec extends Specification with ConnectionHelper {
2425

@@ -129,4 +130,4 @@ class StoredProceduresSpec extends Specification with ConnectionHelper {
129130
}
130131
}
131132
}
132-
}
133+
}

mysql-async/src/test/scala/com/github/mauricio/async/db/mysql/TransactionSpec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.github.mauricio.async.db.Connection
1010

1111
import scala.concurrent.duration.Duration
1212
import scala.concurrent.{Await, Future}
13+
import scala.concurrent.ExecutionContext.Implicits.global
1314
import scala.util.{Success, Failure}
1415

1516
object TransactionSpec {

postgresql-async/src/test/scala/com/github/mauricio/async/db/postgresql/PostgreSQLConnectionSpec.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import org.specs2.mutable.Specification
3030

3131
import scala.concurrent.duration._
3232
import scala.concurrent.{Await, Future}
33+
import scala.concurrent.ExecutionContext.Implicits.global
3334

3435
object PostgreSQLConnectionSpec {
3536
val log = Log.get[PostgreSQLConnectionSpec]
@@ -154,7 +155,7 @@ class PostgreSQLConnectionSpec extends Specification with DatabaseTestHelper {
154155
row(10) === DateEncoderDecoder.decode("1984-08-06")
155156
row(11) === TimeEncoderDecoder.Instance.decode("22:13:45.888888")
156157
row(12) === true
157-
row(13) must beAnInstanceOf[java.lang.Long]
158+
row(13).asInstanceOf[AnyRef] must beAnInstanceOf[java.lang.Long]
158159
row(13).asInstanceOf[Long] must beGreaterThan(0L)
159160

160161

postgresql-async/src/test/scala/com/github/mauricio/async/db/postgresql/pool/ConnectionPoolSpec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import com.github.mauricio.async.db.pool.{ConnectionPool, PoolConfiguration}
2222
import com.github.mauricio.async.db.postgresql.exceptions.GenericDatabaseException
2323
import com.github.mauricio.async.db.postgresql.{PostgreSQLConnection, DatabaseTestHelper}
2424
import org.specs2.mutable.Specification
25+
import scala.concurrent.ExecutionContext.Implicits.global
2526

2627
object ConnectionPoolSpec {
2728
val Insert = "insert into transaction_test (id) values (?)"

project/Build.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ object Configuration {
5151

5252
val commonVersion = "0.2.21-SNAPSHOT"
5353
val projectScalaVersion = "2.11.7"
54-
val specs2Version = "2.5"
54+
val specs2Version = "3.8.5"
5555

5656
val specs2Dependency = "org.specs2" %% "specs2-core" % specs2Version % "test"
5757
val specs2JunitDependency = "org.specs2" %% "specs2-junit" % specs2Version % "test"
@@ -82,6 +82,7 @@ object Configuration {
8282
:+ Opts.compile.unchecked
8383
:+ "-feature"
8484
,
85+
testOptions in Test += Tests.Argument(TestFrameworks.Specs2, "sequential"),
8586
scalacOptions in doc := Seq("-doc-external-doc:scala=http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/"),
8687
crossScalaVersions := Seq(projectScalaVersion, "2.10.6"),
8788
javacOptions := Seq("-source", "1.6", "-target", "1.6", "-encoding", "UTF8"),

0 commit comments

Comments
 (0)