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: unit test to excercise polluted file cache with error#18491

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

Closed
Emyrk wants to merge1 commit intomainfromstevenmasley/file_cache_error

Conversation

Emyrk
Copy link
Member

No description provided.

@aslilac
Copy link
Member

good test to have, but not sure if you're still working on this?

@Emyrk
Copy link
MemberAuthor

good test to have, but not sure if you're still working on this?

@aslilac the test is failing and I did not solve it yet. Just posted the test to show you

aslilac reacted with thumbs up emoji

Comment on lines +65 to +79
go func() {
_, err := cache.Acquire(ctx, fileID)
assert.ErrorIs(t, err, context.Canceled)
wg.Done()
}()

// Second call, that should succeed
go func() {
fs, err := cache.Acquire(ctx, fileID)
assert.NoError(t, err)
if fs != nil {
fs.Close()
}
wg.Done()
}()
Copy link
MemberAuthor

@EmyrkEmyrkJun 24, 2025
edited
Loading

Choose a reason for hiding this comment

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

Maybe we should check that 1 error comes back, and 1 succeeds.

Good comment from@aslilac

@github-actionsgithub-actionsbot added the staleThis issue is like stale bread. labelJul 2, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@aslilacaslilacAwaiting requested review from aslilac

Assignees

@EmyrkEmyrk

Labels
staleThis issue is like stale bread.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@aslilac

[8]ページ先頭

©2009-2025 Movatter.jp