From 3017880afd9cae11f25cbcf098ff13395991914c Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Wed, 28 Sep 2022 21:03:08 -0400 Subject: [PATCH] chore: Add flusher to make implement http.Flusher interface --- coderd/tracing/status_writer_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coderd/tracing/status_writer_test.go b/coderd/tracing/status_writer_test.go index c08bf6cfe277a..8668653d8f81e 100644 --- a/coderd/tracing/status_writer_test.go +++ b/coderd/tracing/status_writer_test.go @@ -127,3 +127,9 @@ type hijacker struct { func (hijacker) Hijack() (net.Conn, *bufio.ReadWriter, error) { return nil, nil, xerrors.New("hijacked") } + +func (h hijacker) Flush() { + if f, ok := h.ResponseWriter.(http.Flusher); ok { + f.Flush() + } +}