Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: remove redundant flaking test#14888

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 1 commit intomainfromethan/refresh-flake
Oct 1, 2024
Merged

Conversation

@ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedOct 1, 2024
edited
Loading

Closes#14877.

I suspect this was flaking on CI as thedbtime used for the refreshed expiry was being rounded to the nearest microsecond. The time values we're comparing are always super close together. and I assume they were being compared as equal? I noticed the flakes were only occurring when the whole test was running in under 100ms, and I was unable to get the tests to fail locally, nor could I get the test to run that quickly. (It also might have been a Windows time precision issue? I only saw the flake on Windows)

Regardless, we already have a test for this inhttpmw/apikey_test.go, and when I wrote this variation it was mainly just to sanity check cli tokens were getting refreshed at all - I now know all apikeys get refreshed!

I don't think we need to test it again at thecoderd level, so I'm happy to get rid of it.

@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@ethanndickson and the rest of your teammates onGraphiteGraphite

cdr-bot[bot]
cdr-botbot approved these changesOct 1, 2024
Copy link

@cdr-botcdr-botbot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@ethanndicksonethanndickson marked this pull request as ready for reviewOctober 1, 2024 08:59
@ethanndicksonethanndicksonenabled auto-merge (squash)October 1, 2024 08:59
@ethanndicksonethanndickson merged commit2a3a00c intomainOct 1, 2024
@ethanndicksonethanndickson deleted the ethan/refresh-flake branchOctober 1, 2024 09:01
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 1, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@cdr-botcdr-bot[bot]cdr-bot[bot] approved these changes

Assignees

@ethanndicksonethanndickson

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

flake:TestAPIKey_Refresh

2 participants

@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp