diff --git a/internal/transport/file_test.go b/internal/transport/file_test.go index 915ffb0..e35c999 100644 --- a/internal/transport/file_test.go +++ b/internal/transport/file_test.go @@ -57,7 +57,9 @@ func TestTransportFileGzipWriter(t *testing.T) { assert.True(t, fw.Gzip()) 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.True(t, TempDir.FileExists("foo.tgz"))