Skip to content

Add an integration test for WebSocket - #11433

Closed
douglowder wants to merge 25 commits into
react:masterfrom
douglowder:websocket-test
Closed

Add an integration test for WebSocket#11433
douglowder wants to merge 25 commits into
react:masterfrom
douglowder:websocket-test

Conversation

@douglowder

Copy link
Copy Markdown
Contributor

Motivation

See if we can safely run a WebSocket test in Travis CI

@facebook-github-bot

Copy link
Copy Markdown
Contributor

By analyzing the blame information on this pull request, we identified @fkgozali and @bestander to be potential reviewers.

@douglowder

Copy link
Copy Markdown
ContributorAuthor

@satya164 Here's a network test that will hopefully run in Travis CI, per our discussion in Slack. Please take a look and see what you think.

@facebook-github-botfacebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 13, 2016
Comment threadIntegrationTests/WebSocketTest.js Outdated
var connectSucceeded = true;
var component = this;
component._connect();
component._waitFor(component._socketIsConnected,5,function(result) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

number This type is incompatible with the expected param type of Number

];

class WebSocketTest extends React.Component {
state: State = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

identifier State Could not resolve name

callback(true);
return;
}
remaining--;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number The operand of an arithmetic operation must be a number.

Comment threadIntegrationTests/WebSocketTest.js Outdated
}
var disconnectSucceeded = true;
component._disconnect();
component._waitFor(component._socketIsDisconnected,5,function(result2) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

number This type is incompatible with the expected param type of Number

@satya164
satya164 self-requested a review December 15, 2016 17:49
@satya164

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

1 similar comment
@satya164

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

@satya164

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

2 similar comments
@janicduplessis

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

@mkonicek

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

@facebook-github-botfacebook-github-bot added Import Started This pull request has been imported. This does not imply the PR has been approved. GH Review: accepted and removed GH Review: review-needed labels Dec 19, 2016
@facebook-github-bot

Copy link
Copy Markdown
Contributor

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

@facebook-github-botfacebook-github-bot removed the Import Started This pull request has been imported. This does not imply the PR has been approved. label Dec 20, 2016
@facebook-github-botfacebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 7, 2017
@facebook-github-bot

Copy link
Copy Markdown
Contributor

Something went wrong when importing this pull request. Please cc someone from the team at fb to help with importing this.

@facebook-github-botfacebook-github-bot removed the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 7, 2017
@facebook-github-botfacebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 13, 2017
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@ericvicenti has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

@facebook-github-botfacebook-github-bot removed the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 14, 2017
@facebook-github-botfacebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 16, 2017
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@javache has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

rozele pushed a commit to microsoft/react-native-windows that referenced this pull request Feb 8, 2017
Summary:
**Motivation**
See if we can safely run a WebSocket test in Travis CI
Closesreact/react-native#11433
Differential Revision: D4342024
Pulled By: ericvicenti
fbshipit-source-id: 137fb0c39ed7ea3726e2778d5c0bdac4cef6ab89
@douglowder
douglowder deleted the websocket-test branch March 9, 2017 15:53
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.Import StartedThis pull request has been imported. This does not imply the PR has been approved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@douglowder@facebook-github-bot@satya164@janicduplessis@mkonicek@hramos@eslint-bot