New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testBatcherWaitsForProcessorDelay2 failed with the latest modification #421

Closed
andreibaranouski opened this Issue Feb 10, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@andreibaranouski
Contributor

andreibaranouski commented Feb 10, 2015

com.couchbase.lite.support.BatcherTest > testBatcherWaitsForProcessorDelay2[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] �[31mFAILED �[0m
junit.framework.AssertionFailedError
at com.couchbase.lite.support.BatcherTest.testBatcherWaitsForProcessorDelay2(BatcherTest.java:301)

couchbase/couchbase-lite-android@8390804#diff-88a7d453965873d9ac5d0f5c6651611aL308
this commit 'broke' the test

http://172.23.113.52:8080/job/couchbase-lite-android-build/35/consoleFull
http://172.23.113.52:8080/job/couchbase-lite-android-build/35/artifact/logcat.txt

02-09 15:21:06.067 I/TestRunner( 1074): failed: testBatcherWaitsForProcessorDelay2(com.couchbase.lite.support.BatcherTest)
02-09 15:21:06.077 I/TestRunner( 1074): ----- begin exception -----
02-09 15:21:06.077 I/TestRunner( 1074): 
02-09 15:21:06.077 I/TestRunner( 1074): junit.framework.AssertionFailedError
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.Assert.fail(Assert.java:48)
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.Assert.assertTrue(Assert.java:20)
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.Assert.assertTrue(Assert.java:27)
02-09 15:21:06.077 I/TestRunner( 1074):     at com.couchbase.lite.support.BatcherTest.testBatcherWaitsForProcessorDelay2(BatcherTest.java:301)
02-09 15:21:06.077 I/TestRunner( 1074):     at java.lang.reflect.Method.invokeNative(Native Method)
02-09 15:21:06.077 I/TestRunner( 1074):     at java.lang.reflect.Method.invoke(Method.java:515)
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.TestCase.runTest(TestCase.java:168)
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.TestCase.runBare(TestCase.java:134)
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.TestResult$1.protect(TestResult.java:115)
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.TestResult.runProtected(TestResult.java:133)
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.TestResult.run(TestResult.java:118)
02-09 15:21:06.077 I/TestRunner( 1074):     at junit.framework.TestCase.run(TestCase.java:124)
02-09 15:21:06.077 I/TestRunner( 1074):     at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
02-09 15:21:06.077 I/TestRunner( 1074):     at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
02-09 15:21:06.077 I/TestRunner( 1074):     at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
02-09 15:21:06.077 I/TestRunner( 1074):     at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
02-09 15:21:06.077 I/TestRunner( 1074): ----- end exception -----
@hideki

This comment has been minimized.

Show comment
Hide comment
@hideki

hideki Feb 16, 2015

Latest codes still fails with BatcherTest.testBatcherWaitsForProcessorDelay2()

// https://github.com/couchbase/couchbase-lite-java-core/issues/403
// Delay is not applied if docs are more than batcher capacity
if(k == 0) {
     assertTrue("delta is " + delta, delta >= processorDelay);
}

hideki commented Feb 16, 2015

Latest codes still fails with BatcherTest.testBatcherWaitsForProcessorDelay2()

// https://github.com/couchbase/couchbase-lite-java-core/issues/403
// Delay is not applied if docs are more than batcher capacity
if(k == 0) {
     assertTrue("delta is " + delta, delta >= processorDelay);
}

@hideki hideki reopened this Feb 17, 2015

@hideki hideki added the review label Feb 17, 2015

@pasin pasin closed this Feb 17, 2015

@pasin pasin removed the review label Feb 17, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment