-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
@spassarop - I'm seeing the following - do you have access to a windows box/VM to confirm this failure? And can you then fix it? Hopefully its just a platform specific issue with the test case and not an actual bug. I only get this 1 error on Windows and none on my Mac.
UPDATE: This isn't always repeatable. I reran the test cases and they passed. And then again, and this one failed. It fails 'almost every other time' on Windows, and I'm running: 'mvn test' repeatedly, not 'mvn clean 'test' if that matters. Hopefully you can replicate this and fix it.
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.owasp.validator.css.CssHandlerTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.047 s - in org.owasp.validator.css.CssHandlerTest
[INFO] Running org.owasp.validator.css.CssScannerTest
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.359 s <<< FAILURE! - in org.owasp.validator.css.CssScannerTest
[ERROR] org.owasp.validator.css.CssScannerTest.testImportLimiting Time elapsed: 1.281 s <<< FAILURE!
java.lang.AssertionError:
Expected: is <2>
but: was <102>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at org.owasp.validator.css.CssScannerTest.testImportLimiting(CssScannerTest.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:377)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:284)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:248)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:167)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] CssScannerTest.testImportLimiting:123
Expected: is <2>
but: was <102>
[INFO]
[ERROR] Tests run: 104, Failures: 1, Errors: 0, Skipped: 0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels