mirror of
https://github.com/rclone/rclone
synced 2025-01-11 14:26:24 +01:00
test: use decompressed.String() instead of string(decompressed.Bytes())
This commit is contained in:
parent
bb92af693a
commit
92fb644fb6
@ -38,7 +38,7 @@ func TestGzipReader(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
_, err = io.Copy(&decompressed, zr)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, data, string(decompressed.Bytes()))
|
||||
assert.Equal(t, data, decompressed.String())
|
||||
|
||||
// Check the underlying close gets called
|
||||
assert.False(t, cc.closed)
|
||||
|
Loading…
Reference in New Issue
Block a user