diff options
author | Zhaozhong Ni <nzz@google.com> | 2018-05-08 10:06:14 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-05-08 10:07:10 -0700 |
commit | fea624b37a90c0e1efc0c1e7ae7dda7b2d1a0050 (patch) | |
tree | a5993ef86b85bf7d23a8d50007c24c9029da957e /pkg/state/statefile/statefile_test.go | |
parent | 09c323910d7f28fec9e4c92e5faaa92bb63bd431 (diff) |
Sentry: always use "best speed" compression for save and remove the option.
PiperOrigin-RevId: 195835861
Change-Id: Ib696b1b571a6b061725a33c535cd7215fe518b97
Diffstat (limited to 'pkg/state/statefile/statefile_test.go')
-rw-r--r-- | pkg/state/statefile/statefile_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/state/statefile/statefile_test.go b/pkg/state/statefile/statefile_test.go index 6e67b51de..66d9581ed 100644 --- a/pkg/state/statefile/statefile_test.go +++ b/pkg/state/statefile/statefile_test.go @@ -16,7 +16,6 @@ package statefile import ( "bytes" - "compress/flate" crand "crypto/rand" "encoding/base64" "io" @@ -89,7 +88,7 @@ func TestStatefile(t *testing.T) { var bufDecoded bytes.Buffer // Do all the writing. - w, err := NewWriter(&bufEncoded, key, c.metadata, flate.BestSpeed) + w, err := NewWriter(&bufEncoded, key, c.metadata) if err != nil { t.Fatalf("error creating writer: got %v, expected nil", err) } @@ -195,7 +194,7 @@ func benchmark(b *testing.B, size int, write bool, compressible bool) { var stateBuf bytes.Buffer writeState := func() { stateBuf.Reset() - w, err := NewWriter(&stateBuf, key, nil, flate.BestSpeed) + w, err := NewWriter(&stateBuf, key, nil) if err != nil { b.Fatalf("error creating writer: %v", err) } |