aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-09-30 19:01:45 +0900
committerOphestra <cat@gensokyo.uk>2026-09-30 19:01:45 +0900
commit815f40c944281ca9a9a68aa612336b13098958c1 (patch)
tree098b890742cd0e4ad07a1076b4641344f7b3e8b4
parenta4c8767e6223daf12d8eb1c53ed770038b2051c6 (diff)
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 <cat@gensokyo.uk>
-rw-r--r--cmd/mbf/internal/ci/ci_test.go1
1 files changed, 1 insertions, 0 deletions
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
}