We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2489d8 commit c2c2c9aCopy full SHA for c2c2c9a
1 file changed
upcloud/service/service_test.go
@@ -409,7 +409,11 @@ func TestCreateBackup(t *testing.T) {
409
410
// Create a backup
411
t.Logf("Creating backup of storage with UUID %s ...", storageDetails.UUID)
412
- timeBeforeBackup := time.Now()
+
413
+ utc, err := time.LoadLocation("UTC")
414
+ handleError(err)
415
416
+ timeBeforeBackup := time.Now().In(utc)
417
418
backupDetails, err := svc.CreateBackup(&request.CreateBackupRequest{
419
UUID: storageDetails.UUID,
@@ -418,7 +422,9 @@ func TestCreateBackup(t *testing.T) {
422
423
handleError(err)
420
424
waitForStorageOnline(storageDetails.UUID)
421
- timeAfterBackup := time.Now()
425
426
+ timeAfterBackup := time.Now().In(utc)
427
428
t.Logf("Created backup with UUID %s", backupDetails.UUID)
429
430
// Get backup storage details
0 commit comments