From c3e92a51d744bc8420e0626b06ee3a0efd030341 Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 14 Aug 2020 16:09:50 +0000 Subject: Compatible with Go 1.15, fix unit test failed on Windows and fixed #689 potential race condition --- stream_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'stream_test.go') diff --git a/stream_test.go b/stream_test.go index d89dad8..d81b1d4 100644 --- a/stream_test.go +++ b/stream_test.go @@ -91,6 +91,7 @@ func TestStreamWriter(t *testing.T) { assert.NoError(t, err) _, err = streamWriter.rawData.Reader() assert.NoError(t, err) + assert.NoError(t, streamWriter.rawData.tmp.Close()) assert.NoError(t, os.Remove(streamWriter.rawData.tmp.Name())) // Test unsupport charset -- cgit v1.2.1