tusd/gcsstore
Acconut c0651e77fc gcsstore: Do not ignore errors when writing an object
Previously, any error returned from w.Close() would be ignored. This is
a problem since this function is responsible for returning any error
that occurred during the actual GCS transaction.

This fix also uncovered an issue in the corresponding test routine.

Furthermore, a "404 Not Found" error when writing an object is now
interpreted as if the bucket does not exist to ease debugging
(see https://github.com/tus/tusd/issues/241).

/cc @tab1293
2019-03-10 17:01:29 +01:00
..
gcsservice.go gcsstore: Do not ignore errors when writing an object 2019-03-10 17:01:29 +01:00
gcsservice_test.go gcsstore: Do not ignore errors when writing an object 2019-03-10 17:01:29 +01:00
gcsstore.go Pass GCS object params directly to goroutine 2018-07-25 12:51:07 -04:00
gcsstore_mock_test.go Update tests to pass context and expect GetObjectSize in any order 2018-07-25 12:51:38 -04:00
gcsstore_test.go Update tests to pass context and expect GetObjectSize in any order 2018-07-25 12:51:38 -04:00