[JBoss JIRA] (ISPN-9474) ScriptingDataStoresTest fails
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-9474?page=com.atlassian.jira.plugin.... ]
Adrian Nistor commented on ISPN-9474:
-------------------------------------
This is a 9.4.x issue only ! The test does not fail on 9.3.x.
> ScriptingDataStoresTest fails
> -----------------------------
>
> Key: ISPN-9474
> URL: https://issues.jboss.org/browse/ISPN-9474
> Project: Infinispan
> Issue Type: Bug
> Components: Tasks
> Affects Versions: 9.4.0.CR1
> Reporter: Adrian Nistor
> Assignee: Tristan Tarrant
>
> This test is currently not executed because it does not declare params and AbstractInfinispanTest mistakenly detects is as name duplicate.
> Running it from command line individually will show 0 executed tests.
> Need to add params to make its name unique and pass AbstractInfinispanTest's validation:
> {code}
> @Override
> protected String parameters() {
> return "[" + storageType + "]";
> }
> {code}
> After fixing this you can see that it is finally executed and it fails; here's one of the failures:
> {code}
> [ERROR] testScriptWithoutParam[OFF_HEAP](org.infinispan.scripting.ScriptingDataStoresTest) Time elapsed: 0.015 s <<< FAILURE!
> java.lang.AssertionError: expected:<javaValue:additionFromJavascript> but was:<javaValue>
> at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
> at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
> at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80)
> at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88)
> at org.infinispan.scripting.ScriptingDataStoresTest.testScriptWithoutParam(ScriptingDataStoresTest.java:81)
> 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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
> at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:196)
> at org.infinispan.commons.test.TestNGLongTestsHook.run(TestNGLongTestsHook.java:24)
> at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:208)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:635)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
> at org.testng.TestRunner.privateRun(TestRunner.java:774)
> at org.testng.TestRunner.run(TestRunner.java:624)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:39)
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:393)
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 4 months
[JBoss JIRA] (ISPN-9475) AbstractInfinispanTest mistakenly detects some test with params as duplicates
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-9475?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-9475:
--------------------------------
Fix Version/s: 9.3.3.Final
> AbstractInfinispanTest mistakenly detects some test with params as duplicates
> -----------------------------------------------------------------------------
>
> Key: ISPN-9475
> URL: https://issues.jboss.org/browse/ISPN-9475
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Affects Versions: 9.4.0.CR1
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 9.4.0.Final, 9.3.3.Final
>
>
> Tests with undeclared params will not have the test name properly generated, so AbstractInfinispanTest will see all tests created by a factory as having the same name and will try to mark them as failed. Unfortunately the exception thrown in the method interceptor does not fail the test, it just manages to get it ignored.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 4 months