From 815f40c944281ca9a9a68aa612336b13098958c1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 30 Sep 2026 19:01:45 +0900 Subject: cmd/mbf/internal/ci: reset buffer before retrying This obtains a fresh file descriptor on each attempt. Without resetting it would end up endlessly appending to the buffer. Signed-off-by: Ophestra --- cmd/mbf/internal/ci/ci_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/mbf/internal/ci/ci_test.go b/cmd/mbf/internal/ci/ci_test.go index b5ed134e..447c4ab1 100644 --- a/cmd/mbf/internal/ci/ci_test.go +++ b/cmd/mbf/internal/ci/ci_test.go @@ -46,6 +46,7 @@ retry: // the inotify event takes time to arrive, and there is no way to // synchronise for this cleanly if buf.Len() != len(want) { + buf.Reset() goto retry } -- cgit v1.3.1