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

Allow customizing load-bearing sleeps #159

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Conversation

9999years
Copy link
Member

The test suite features a load-bearing sleep of 1 second before writing. This makes the filesystem events get detected more reliably, for whatever reason.

This change allows disabling the load-bearing sleeps; this is typically needed to make several writes that all get detected together by ghciwatch.

The test suite features a load-bearing sleep of 1 second before writing.
This makes the filesystem events get detected more reliably, for
whatever reason.

This change allows disabling the load-bearing sleeps; this is typically
needed to make several writes that all get detected together by
`ghciwatch`.
@@ -477,16 +482,26 @@ impl GhciWatch {
pub fn pid(&self) -> u32 {
self.pid
}

/// Get the filesystem helpers.
pub fn fs(&self) -> &Fs {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe make this a public field so you don't need the method

@9999years 9999years merged commit 7dd98ad into main Nov 21, 2023
30 checks passed
@9999years 9999years deleted the rebeccat/load-bearing-sleep branch November 21, 2023 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants