Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

#1588 Fixing up Android buffer problem and failing tests #1589

Merged
merged 4 commits into from
Dec 1, 2016
Merged

Conversation

yaronyg
Copy link
Member

@yaronyg yaronyg commented Dec 1, 2016

SocketThreadBase - Turns out that the logic that got checked in could end up setting buffers to zero
because the Bluetooth socket get size calls could return 0. For now I decided to just remove the dynamic
size setting to simplify things. This should hopefully fix Android.

testThaliMobileNative - We have a condition where we could test something after we have called t.end but
this is necessary because our peer might be done with the test but the other might not. So now the test
will only cause a failure if it actually fails in which case we should fail.

testThaliMobileNativeWrapper - In addition to an identical issue to the one described above we also had tests
that were written before the skip functionality so I fixed that. Also some of the test names were so similar it
made doing searches hard so I added some text to make them different.

CoordinatedClient - Added the original result object to the error

makeIntoCloseAllServer - Linting


This change is Reviewable

SocketThreadBase - Turns out that the logic that got checked in could end up setting buffers to zero
because the Bluetooth socket get size calls could return 0. For now I decided to just remove the dynamic
size setting to simplify things. This should hopefully fix Android.

testThaliMobileNative - We have a condition where we could test something after we have called t.end but
this is necessary because our peer might be done with the test but the other might not. So now the test
will only cause a failure if it actually fails in which case we should fail.

testThaliMobileNativeWrapper - In addition to an identical issue to the one described above we also had tests
that were written before the skip functionality so I fixed that. Also some of the test names were so similar it
made doing searches hard so I added some text to make them different.

CoordinatedClient - Added the original result object to the error

makeIntoCloseAllServer - Linting
@ThaliTester
Copy link
Member

PR is added to the queue for testing as 1. task. (6721f4c)

@ThaliTester
Copy link
Member

Test 96008345 (6721f4c) build started.

@ThaliTester
Copy link
Member

@chapko
Copy link
Contributor

chapko commented Dec 1, 2016

Reviewed 5 of 5 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


test/www/jxcore/bv_tests/testThaliMobileNativeWrapper.js, line 448 at r1 (raw file):

test('can do HTTP requests between peers without coordinator',
  function() {
    return platform.isMobile;

It should be platform._isRealMobile everywhere. isMobile is always true on mocked Mobile.


Comments from Reviewable

@ThaliTester
Copy link
Member

PR is added to the queue for testing as 1. task. (ac97228)

@ThaliTester
Copy link
Member

Test 96008345 (ac97228) build started.

@ThaliTester
Copy link
Member

@ThaliTester
Copy link
Member

Chapko pointed out that using isMobile is silly since that is literally always true, what I was looking for is _isRealMobile
@ThaliTester
Copy link
Member

PR is added to the queue for testing as 1. task. (c2441a7)

@ThaliTester
Copy link
Member

Test 96008345 (c2441a7) build started.

@yaronyg
Copy link
Member Author

yaronyg commented Dec 1, 2016

Review status: 3 of 6 files reviewed at latest revision, 1 unresolved discussion.


test/www/jxcore/bv_tests/testThaliMobileNativeWrapper.js, line 448 at r1 (raw file):

Previously, chapko (Eugene Chapko) wrote…

It should be platform._isRealMobile everywhere. isMobile is always true on mocked Mobile.

An excellent point! Fixed


Comments from Reviewable

@ThaliTester
Copy link
Member

@ThaliTester
Copy link
Member

@yaronyg yaronyg merged commit 0a27161 into master Dec 1, 2016
@evabishchevich evabishchevich deleted the master_1588 branch February 22, 2017 14:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants