diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-24 14:31:48 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-24 14:31:48 +0200 |
| commit | 92114c3b6bfe8a3d28487fcfb34fd291c573500c (patch) | |
| tree | 35e0e35009517069e2bf35c6a628fad3a68a8ece /integrationtests/cmd/ioworkload/scenario_unlink.go | |
| parent | d93d286b6b214f12e65214360a41f8668123f174 (diff) | |
integrationtests: reduce parallel flakiness in syscall capture
Diffstat (limited to 'integrationtests/cmd/ioworkload/scenario_unlink.go')
| -rw-r--r-- | integrationtests/cmd/ioworkload/scenario_unlink.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/integrationtests/cmd/ioworkload/scenario_unlink.go b/integrationtests/cmd/ioworkload/scenario_unlink.go index ec7c926..e2cba6c 100644 --- a/integrationtests/cmd/ioworkload/scenario_unlink.go +++ b/integrationtests/cmd/ioworkload/scenario_unlink.go @@ -5,6 +5,7 @@ import ( "path/filepath" "runtime" "syscall" + "time" "unsafe" ) @@ -86,6 +87,8 @@ func unlinkRmdir() error { if err := syscall.Mkdir(subDir, 0o755); err != nil { return fmt.Errorf("mkdir: %w", err) } + // Give ior a brief attach window before the one-shot rmdir syscall. + time.Sleep(300 * time.Millisecond) pathBytes, err := syscall.BytePtrFromString(subDir) if err != nil { |
