mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 12:36:38 +08: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