Skip to content

Commit

Permalink
Merge pull request #122 from gzm0/re-enable-large-message-test
Browse files Browse the repository at this point in the history
Fix #105: Re-enable largeMessageTest
  • Loading branch information
sjrd authored Mar 15, 2021
2 parents 4ba7c49 + 47ac5f0 commit 5372e7f
Showing 1 changed file with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,7 @@ import org.junit.runners.Suite
import org.junit.runner.manipulation.Filter
import org.junit.runner.Description

@RunWith(classOf[SeleniumJSSuiteRunner])
@RunWith(classOf[JSEnvSuiteRunner])
class SeleniumJSSuite extends JSEnvSuite(
JSEnvSuiteConfig(new SeleniumJSEnv(TestCapabilities.fromEnv))
)

class SeleniumJSSuiteRunner private (
root: Class[_], base: JSEnvSuiteRunner)
extends Suite(root, Arrays.asList[Runner](base)) {

/** Constructor for reflective instantiation via `@RunWith`. */
def this(suite: Class[_ <: SeleniumJSSuite]) =
this(suite, new JSEnvSuiteRunner(suite))

// Ignore `largeMessageTest` for chrome.
if (TestCapabilities.nameFromEnv == "chrome") {
base.filter(new Filter {
def describe(): String = "Ignore largeMessageTest"

def shouldRun(description: Description): Boolean = {
description.getMethodName == null ||
!description.getMethodName.startsWith("largeMessageTest")
}
})
}
}

0 comments on commit 5372e7f

Please sign in to comment.