From 028a4edbd48a01a4868e23be963706a95b53801b Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Wed, 28 Sep 2022 21:16:11 -0400 Subject: [PATCH] chore: Add flusher to make implement http.Flusher interface (#4255) --- 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 c08bf6cfe2..8668653d8f 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() + } +}