Skip to content

Commit

Permalink
すぐに EOF にならないようにファイル読み込み完了後に待たせる
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Nov 29, 2024
1 parent d321c2d commit a834f61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a834f61

Please sign in to comment.