diff options
Diffstat (limited to 'tests/largeobject_test.go')
| -rw-r--r-- | tests/largeobject_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/largeobject_test.go b/tests/largeobject_test.go index b63ccd7..ed61033 100644 --- a/tests/largeobject_test.go +++ b/tests/largeobject_test.go @@ -37,7 +37,7 @@ func TestLargeObjectsBasic(t *testing.T) { testWithContainer(t, func(c *schwift.Container) { foreachLargeObjectStrategy(func(strategy schwift.LargeObjectStrategy, strategyStr string) { obj := c.Object(strategyStr + "-largeobject") - lo, err := obj.AsLargeObject() + _, err := obj.AsLargeObject() expectError(t, err, schwift.ErrNotLarge.Error()) segment1 := getRandomSegmentContent(128) @@ -46,7 +46,7 @@ func TestLargeObjectsBasic(t *testing.T) { segment4 := getRandomSegmentContent(128) //basic write example - lo, err = obj.AsNewLargeObject(schwift.SegmentingOptions{ + lo, err := obj.AsNewLargeObject(schwift.SegmentingOptions{ SegmentContainer: c, SegmentPrefix: strategyStr + "-segments/", Strategy: strategy, @@ -169,7 +169,6 @@ func TestLargeObjectExpiration(t *testing.T) { expectSuccess(t, err) objectExpiration = hdr.ExpiresAt().Get().Format("2006-01-02 15:04:05 +00:00 MST") expectString(t, objectExpiration, expirationTime.Format("2006-01-02 15:04:05 +00:00 MST")) - }) }) } @@ -210,7 +209,6 @@ func TestTruncateDuringOverwrite(t *testing.T) { expectObjectExistence(t, c.Object("segments/0000000000000001"), false) expectObjectExistence(t, c.Object("segments/0000000000000002"), false) - }) }) } |
