From 5f4c15c6881933d33891a59da07c571106331335 Mon Sep 17 00:00:00 2001 From: Erik Unger Date: Tue, 14 Jan 2025 13:03:08 +0100 Subject: [PATCH] testCompressDecompress --- bytes_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bytes_test.go b/bytes_test.go index eab7f6a..fb2b940 100644 --- a/bytes_test.go +++ b/bytes_test.go @@ -97,7 +97,7 @@ func Test_BytesDecodeHex(t *testing.T) { func testCompressDecompress(t *testing.T, compressFunc func([]byte) []byte, decompressFunc func([]byte) []byte) { - testFn := func(testData []byte) { + testFn := func(t *testing.T, testData []byte) { compressedData := compressFunc(testData) uncompressedData := decompressFunc(compressedData) if !bytes.Equal(testData, uncompressedData) { @@ -105,9 +105,9 @@ func testCompressDecompress(t *testing.T, } } - go testFn([]byte("hello123")) - go testFn([]byte("gopher456")) - go testFn([]byte("dry789")) + testFn(t, []byte("hello123")) + testFn(t, []byte("gopher456")) + testFn(t, []byte("dry789")) } func Test_BytesDeflateInflate(t *testing.T) {