mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-03 11:45:20 +00:00
Enable staticcheck and resolve found issues.
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
@@ -412,7 +412,7 @@ func TestGetBackupVolumeSnapshots(t *testing.T) {
|
||||
|
||||
// volumesnapshots file containing invalid data should error
|
||||
harness.objectStore.PutObject(harness.bucket, "backups/test-backup/test-backup-volumesnapshots.json.gz", newStringReadSeeker("foo"))
|
||||
res, err = harness.GetBackupVolumeSnapshots("test-backup")
|
||||
_, err = harness.GetBackupVolumeSnapshots("test-backup")
|
||||
assert.NotNil(t, err)
|
||||
|
||||
// volumesnapshots file containing gzipped json data should return correctly
|
||||
@@ -454,7 +454,7 @@ func TestGetBackupItemOperations(t *testing.T) {
|
||||
|
||||
// itemoperations file containing invalid data should error
|
||||
harness.objectStore.PutObject(harness.bucket, "backups/test-backup/test-backup-itemoperations.json.gz", newStringReadSeeker("foo"))
|
||||
res, err = harness.GetBackupItemOperations("test-backup")
|
||||
_, err = harness.GetBackupItemOperations("test-backup")
|
||||
assert.NotNil(t, err)
|
||||
|
||||
// itemoperations file containing gzipped json data should return correctly
|
||||
|
||||
Reference in New Issue
Block a user