check write error
Some checks are pending
Lint / golangci-lint (push) Waiting to run
Declarative Tests / test (push) Waiting to run

This commit is contained in:
Matthew Rich 2024-10-04 00:11:58 +00:00
parent d359d8bfab
commit c1512e67d1

View File

@ -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"))