Skip to content

Commit dd52802

Browse files
committed
update test.
1 parent 977e01d commit dd52802

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import java.sql.{Date, Timestamp}
2222

2323
import scala.language.postfixOps
2424

25-
import org.scalatest.words.MatcherWords.{be, noException}
25+
import org.scalatest.words.MatcherWords.be
2626

2727
import org.apache.spark.sql.catalyst.encoders.{OuterScopes, RowEncoder}
2828
import org.apache.spark.sql.execution.streaming.MemoryStream
@@ -681,10 +681,9 @@ class DatasetSuite extends QueryTest with SharedSQLContext {
681681
val dataset = Seq(1, 2, 3).toDS()
682682
dataset.createOrReplaceTempView("tempView")
683683

684-
noException should be thrownBy {
685-
// Overrrides the existing temporary view with same name
686-
dataset.createOrReplaceTempView("tempView")
687-
}
684+
// Overrrides the existing temporary view with same name
685+
// No exception should be thrown here.
686+
dataset.createOrReplaceTempView("tempView")
688687

689688
// Throws AnalysisException if temp view with same name already exists
690689
val e = intercept[AnalysisException](

0 commit comments

Comments
 (0)