Merge pull request #513 from ncdc/510-follow-ups

Fix copyright date, add happy path test case
This commit is contained in:
Steve Kriss
2018-05-23 08:54:22 -07:00
committed by GitHub

View File

@@ -1,5 +1,5 @@
/*
Copyright 2019 the Heptio Ark contributors.
Copyright 2018 the Heptio Ark contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -60,6 +60,12 @@ func TestPutObject(t *testing.T) {
closeErr error
expectedErr error
}{
{
name: "No errors returns nil",
closeErr: nil,
writeErr: nil,
expectedErr: nil,
},
{
name: "Close() errors are returned",
closeErr: errors.New("error closing"),