Removed timestamp check (#874)

## Description

Removed timestamp check which could fail if the test started right before the hour rolled over.

Couldn't think of a better check that wouldn't fail at *some point*

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor
This commit is contained in:
Vaibhav Kamra 2022-09-15 17:35:47 -07:00 committed by GitHub
parent ad2d046d19
commit 16d384a232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@ import (
"fmt"
"strings"
"testing"
"time"
"github.com/google/uuid"
"github.com/spf13/viper"
@ -116,9 +115,7 @@ func (suite *BackupExchangeIntegrationSuite) TestExchangeBackupCmd() {
result := recorder.String()
t.Log("backup results", result)
// as an offhand check: the result should contain a string with the current hour
assert.Contains(t, result, time.Now().UTC().Format("2006-01-02T15"))
// and the m365 user id
// as an offhand check: the result should contain the m365 user id
assert.Contains(t, result, suite.m365UserID)
})
}