Skip to content

Commit

Permalink
Minor update to the scala tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCanali committed May 3, 2023
1 parent f41c72b commit bafe083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/scala/ch/cern/sparkmeasure/StageMetricsTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class StageMetricsTest extends FunSuite with BeforeAndAfterAll {
}

test("test StageMetrics") {
val stageMetrics = ch.cern.sparkmeasure.StageMetrics(spark)
val stageMetrics = StageMetrics(spark)
stageMetrics.runAndMeasure {
spark.sql("select count(*) from range(100) cross join range(100) cross join range(100)").show()
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/ch/cern/sparkmeasure/TaskMetricsTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TaskMetricsTest extends FunSuite with BeforeAndAfterAll {
}

test("test TaskMetrics") {
val taskMetrics = ch.cern.sparkmeasure.TaskMetrics(spark)
val taskMetrics = TaskMetrics(spark)
taskMetrics.runAndMeasure {
spark.sql("select count(*) from range(100) cross join range(100) cross join range(100)").show()
}
Expand Down

0 comments on commit bafe083

Please sign in to comment.