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

[#4739] Update e2e channel defaults webhook test #4790

Conversation

xtreme-sameer-vohra
Copy link
Contributor

Fixes #4739

Proposed Changes

  • 🧹 use "require.Nil" instead of "assert.Equal" for test setup and where
    we don't wish to retry. The latter notes a failure but doesn't fail
    immediately. This resulted in panics in subsequent sections of the
    broker defaults webhook test [Replace assert with require in test #4717] and made it hard to pin point
    the reason. "require.Nil" will output the error and fail immediately
    making it easier to debug issues with test setup.

- use "require.Nil" instead of "assert.Equal" for test setup and where
  we don't wish to retry. The latter notes a failure but doesn't fail
  immediately. This resulted in panics in subsequent sections of the
  broker defaults webhook test [knative#4717] and made it hard to pin point
  the reason. "require.Nil" will output the error and fail immediately
  making it easier to debug issues with test setup.

Signed-off-by: Sameer Vohra <vsameer@vmware.com>
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Jan 26, 2021
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/test-and-release Test infrastructure, tests or release labels Jan 26, 2021
@codecov
Copy link

codecov bot commented Jan 26, 2021

Codecov Report

Merging #4790 (dd828bf) into master (d430261) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4790   +/-   ##
=======================================
  Coverage   81.25%   81.25%           
=======================================
  Files         291      291           
  Lines        8281     8281           
=======================================
  Hits         6729     6729           
  Misses       1143     1143           
  Partials      409      409           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d430261...dd828bf. Read the comment docs.

Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 26, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pierDipi, xtreme-sameer-vohra

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

The pull request process is described here

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 26, 2021
@knative-prow-robot knative-prow-robot merged commit 81ce898 into knative:master Jan 26, 2021
@xtreme-sameer-vohra xtreme-sameer-vohra deleted the update-e2e-channel-defaults-test branch January 26, 2021 16:52
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. area/test-and-release Test infrastructure, tests or release cla: yes Indicates the PR's author has signed the CLA. lgtm 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.

Replace assert with require in e2e channel defaults webhook test
3 participants