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

chore: refactorAgentHasNotConnectedSinceWeek_LogsExpired#13802

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
mtojek merged 3 commits intomainfrom13801-flake-1
Jul 8, 2024

Conversation

mtojek
Copy link
Member

Related:#13801

This PR refactorsAgentHasNotConnectedSinceWeek_LogsExpired to get more debug insights into this specific unit test.

@mtojekmtojek self-assigned thisJul 8, 2024
@mtojekmtojek requested a review fromdannykoppingJuly 8, 2024 10:23
@mtojekmtojek marked this pull request as ready for reviewJuly 8, 2024 10:23
// when
closer := dbpurge.New(ctx, logger, db)
defer closer.Close()

// then
require.Eventually(t, func() bool {
agentLogs, err := db.GetWorkspaceAgentLogsAfter(ctx, database.GetWorkspaceAgentLogsAfterParams{
assert.Eventually(t, func() bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert.Eventually(t,func()bool {
require.Eventually(t,func()bool {

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

require.Eventually will fail withCondition never met. I want to run the follow-up assertion afterward to see what is on the list.

dannykopping reacted with thumbs up emoji
Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

LGTM

@mtojekmtojek merged commit10aa32c intomainJul 8, 2024
28 checks passed
@mtojekmtojek deleted the 13801-flake-1 branchJuly 8, 2024 11:52
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 8, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

Assignees

@mtojekmtojek

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mtojek@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp