Skip to content

Commit

Permalink
Disable shrinking in test
Browse files Browse the repository at this point in the history
SemanticIndexAcceptanceTest is yet again flaky - it started just
a week ago and I suspect there is an actual bug hiding here somewhere.
However the shrinking done by scalacheck here hides the actual error
which makes it even trickier to investigate. This PR just disables the
shrinking in order to make the investigation easier.
  • Loading branch information
pontusmelke committed Sep 10, 2018
1 parent 947cce9 commit fa51722
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -22,11 +22,14 @@ package org.neo4j.cypher.internal.compiler.v3_3
import java.util.concurrent.TimeUnit

import org.neo4j.cypher.ExecutionEngineFunSuite
import org.scalacheck.Gen
import org.scalacheck.{Gen, Shrink}
import org.scalatest.prop.PropertyChecks

class SemanticIndexAcceptanceTest extends ExecutionEngineFunSuite with PropertyChecks {

//we don't want scala check to shrink since it hides the actual error
implicit val dontShrink: Shrink[String] = Shrink(s => Stream.empty)

//the actual test
List("<", "<=", "=", ">", ">=").foreach(testOperator)

Expand Down

0 comments on commit fa51722

Please sign in to comment.