aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/exec_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-24 16:02:50 +0900
committerOphestra <cat@gensokyo.uk>2026-01-24 16:02:50 +0900
commit6956dfc31ae014c0bdeedf5d3f20963b99abcddb (patch)
treebccb5a9ee9782a16fec3f0530e1035ef3adf1c9d /internal/pkg/exec_test.go
parentd9ebaf20f8e71f043d2387a42d273dadc5d536b5 (diff)
internal/pkg: block on implementation entry
This avoids blocking while not in Cure method of the implementation. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/exec_test.go')
-rw-r--r--internal/pkg/exec_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/pkg/exec_test.go b/internal/pkg/exec_test.go
index d3d1e155..862a28ca 100644
--- a/internal/pkg/exec_test.go
+++ b/internal/pkg/exec_test.go
@@ -239,7 +239,9 @@ func TestExec(t *testing.T) {
cure: func(t *pkg.TContext) error {
return os.MkdirAll(t.GetWorkDir().String(), 0700)
},
- }}, 1<<5 /* concurrent cache hits */), cure: func(f *pkg.FContext) error {
+ }}, 1<<5 /* concurrent cache hits */),
+
+ cure: func(f *pkg.FContext) error {
work := f.GetWorkDir()
if err := os.MkdirAll(work.String(), 0700); err != nil {
return err