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

Flaky TestLocal #1665

Merged
merged 2 commits into from
Jun 30, 2020
Merged

Conversation

markmandel
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug

/kind cleanup

/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

Fixed an issue with time slipping in this test, causing equality test to fail.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

None

Fixed an issue with time slipping in this test.
@markmandel markmandel added kind/cleanup Refactoring code, fixing up documentation, etc area/tests Unit tests, e2e tests, anything to make sure things don't break labels Jun 30, 2020
Copy link
Member

@roberthbailey roberthbailey left a comment

Choose a reason for hiding this comment

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

I don't want to block this change, but using something like https://pkg.go.dev/github.com/google/go-cmp/cmp would make it easy to express things like "these should be equal except this one field" and might be worth considering using if this sort of pattern becomes common in our code base.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aLekSer, markmandel, roberthbailey

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:
  • OWNERS [markmandel,roberthbailey]

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

@markmandel
Copy link
Member Author

I don't want to block this change, but using something like https://pkg.go.dev/github.com/google/go-cmp/cmp would make it easy to express things like "these should be equal except this one field" and might be worth considering using if this sort of pattern becomes common in our code base.

Ooh! that's nice!

I didn't see anything similar in https://pkg.go.dev/github.com/stretchr/testify@v1.6.1/assert?tab=doc - but might be worth popping through it again just in case -- the list of assertions has grown considerably since we first started using the package!

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 7af059c3-8ed3-4a6e-b62a-f2d6e0ae89b9

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/1665/head:pr_1665 && git checkout pr_1665
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.7.0-7360970

@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 4490ca77-fb81-48e2-9224-b726554d9c2b

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/1665/head:pr_1665 && git checkout pr_1665
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.7.0-c0f708d

@markmandel markmandel merged commit bd469a3 into googleforgames:master Jun 30, 2020
@markmandel markmandel deleted the flaky/TestLocal branch June 30, 2020 23:24
@markmandel markmandel added this to the 1.7.0 milestone Jul 7, 2020
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
Fixed an issue with time slipping in this test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/tests Unit tests, e2e tests, anything to make sure things don't break cla: yes kind/cleanup Refactoring code, fixing up documentation, etc size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants