Skip to content
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

Add an integration test for WebSocket #11433

Closed
wants to merge 25 commits into from

Conversation

douglowder
Copy link
Contributor

Motivation

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

@facebook-github-bot
Copy link
Contributor

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

@douglowder
Copy link
Contributor Author

@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-bot facebook-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
var connectSucceeded = true;
var component = this;
component._connect();
component._waitFor(component._socketIsConnected,5,function(result) {

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 = {

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--;

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.

}
var disconnectSucceeded = true;
component._disconnect();
component._waitFor(component._socketIsDisconnected,5,function(result2) {

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
Contributor

@facebook-github-bot shipit

1 similar comment
@satya164
Copy link
Contributor

@facebook-github-bot shipit

@satya164
Copy link
Contributor

@facebook-github-bot shipit

2 similar comments
@janicduplessis
Copy link
Contributor

@facebook-github-bot shipit

@mkonicek
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot facebook-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
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-bot facebook-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-bot facebook-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
Contributor

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

@facebook-github-bot facebook-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-bot facebook-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
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
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-bot facebook-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-bot facebook-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
Contributor

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

nicktate pushed a commit to nicktate/react-native that referenced this pull request Jan 19, 2017
Summary:
**Motivation**

See if we can safely run a WebSocket test in Travis CI
Closes facebook#11433

Differential Revision: D4342024

Pulled By: ericvicenti

fbshipit-source-id: 137fb0c39ed7ea3726e2778d5c0bdac4cef6ab89
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
Closes facebook/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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This 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