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

test: use not before in TestAgentConnectionMonitor_*#21332

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

Open
spikecurtis wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromspike/internal-1203-not-before

Conversation

@spikecurtis
Copy link
Contributor

@spikecurtisspikecurtis commentedDec 19, 2025
edited
Loading

fixescoder/internal#1203

The matcher I wrote for TestAgentConnectionMonitor tested thatlast_disconnected_at was strictlyafter the start of the test to ensure it was updated.

This is too strict of a test because Windows in particular doesn't have high-resolution timers, so it's entirely possible to get the exact same timestamp from subsequent calls totime.Now(). This PR switches the test tonot before to cover this case. The results are just as valid because we always initialize thelast_disconnected_at to something well before the test starts.

@spikecurtisGraphite App
Copy link
ContributorAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@spikecurtisspikecurtis marked this pull request as ready for reviewDecember 19, 2025 06:20
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mafredrimafredriAwaiting requested review from mafredri

At least 1 approving review is required to merge this pull request.

Assignees

@spikecurtisspikecurtis

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

flake: TestAgentConnectionMonitor_StartClose

2 participants

@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp