Skip to content

Fix watch to emit an error twice on error. Add tests.#396

Merged
k8s-ci-robot merged 1 commit intokubernetes-client:masterfrom
brendandburns:validate
Jan 24, 2020
Merged

Fix watch to emit an error twice on error. Add tests.#396
k8s-ci-robot merged 1 commit intokubernetes-client:masterfrom
brendandburns:validate

Conversation

@brendandburns
Copy link
Copy Markdown
Contributor

Fixes #392

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 23, 2020
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 23, 2020
expect(doneCalled).to.equal(true);
expect(doneErr).to.deep.equal(errIn);
expect(doneErr.length).to.equal(2);
if (doneErr.length == 2) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This if check is redundant as the first check already guards against it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

@drubin
Copy link
Copy Markdown
Contributor

drubin commented Jan 23, 2020

@brendandburns the linting is off but it looks good.

@brendandburns
Copy link
Copy Markdown
Contributor Author

lint fixed, comment addressed. Please re-check.

Thanks!

Copy link
Copy Markdown
Contributor

@drubin drubin left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 24, 2020
@k8s-ci-robot k8s-ci-robot merged commit 568a853 into kubernetes-client:master Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

watch with resourceVersion too old triggers done() callback with null err

4 participants