From a834f6179c552696c8d5b2a2da6c345dd5404cf1 Mon Sep 17 00:00:00 2001 From: Yoshida Hiroshi Date: Fri, 29 Nov 2024 14:51:02 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=99=E3=81=90=E3=81=AB=20EOF=20=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=82=89=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E8=AA=AD=E3=81=BF=E8=BE=BC?= =?UTF-8?q?=E3=81=BF=E5=AE=8C=E4=BA=86=E5=BE=8C=E3=81=AB=E5=BE=85=E3=81=9F?= =?UTF-8?q?=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_handler_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_handler_test.go b/test_handler_test.go index 506a6c4..8986a7f 100644 --- a/test_handler_test.go +++ b/test_handler_test.go @@ -63,6 +63,9 @@ func readDumpFile(t *testing.T, filename string, d time.Duration) *io.PipeReader t.Error(err.Error()) return } + + // 閉じてしまうとすぐに EOF で切断状態になるため少し待つ + time.Sleep(2 * time.Second) }() return r