check write error
This commit is contained in:
parent
d359d8bfab
commit
c1512e67d1
@ -57,7 +57,9 @@ func TestTransportFileGzipWriter(t *testing.T) {
|
|||||||
assert.True(t, fw.Gzip())
|
assert.True(t, fw.Gzip())
|
||||||
|
|
||||||
writer := fw.Writer()
|
writer := fw.Writer()
|
||||||
writer.Write([]byte(testValue))
|
n, err := writer.Write([]byte(testValue))
|
||||||
|
assert.Equal(t, len(testValue), n)
|
||||||
|
assert.Nil(t, err)
|
||||||
assert.Nil(t, writer.Close())
|
assert.Nil(t, writer.Close())
|
||||||
|
|
||||||
assert.True(t, TempDir.FileExists("foo.tgz"))
|
assert.True(t, TempDir.FileExists("foo.tgz"))
|
||||||
|
Loading…
Reference in New Issue
Block a user