Skip to content

Commit 63d6d5a

Browse files
committed
More verbose error for backup creation timestamp check
1 parent c2c2c9a commit 63d6d5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

upcloud/service/service_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@ func TestCreateBackup(t *testing.T) {
440440
}
441441

442442
if backupStorageDetails.Created.Before(timeBeforeBackup) {
443-
t.Errorf("The creation timestamp of backup storage UUID %s is too early", backupDetails.UUID)
443+
t.Errorf("The creation timestamp of backup storage UUID %s is too early: %v (should be after %v)", backupDetails.UUID, backupStorageDetails.Created, timeBeforeBackup)
444444
}
445445

446446
if backupStorageDetails.Created.After(timeAfterBackup) {
447-
t.Errorf("The creation timestamp of backup storage UUID %s is too late", backupDetails.UUID)
447+
t.Errorf("The creation timestamp of backup storage UUID %s is too late: %v (should be before %v)", backupDetails.UUID, backupStorageDetails.Created, timeAfterBackup)
448448
}
449449

450450
t.Logf("Backup storage origin UUID OK")

0 commit comments

Comments
 (0)