From 16d384a232389b3b47a6d116d64da45e93d5ecdd Mon Sep 17 00:00:00 2001 From: Vaibhav Kamra Date: Thu, 15 Sep 2022 17:35:47 -0700 Subject: [PATCH] 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 - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Test - [ ] :computer: CI/Deployment - [x] :hamster: Trivial/Minor --- src/cli/backup/exchange_integration_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cli/backup/exchange_integration_test.go b/src/cli/backup/exchange_integration_test.go index cf10b7641..0c7bc7cbd 100644 --- a/src/cli/backup/exchange_integration_test.go +++ b/src/cli/backup/exchange_integration_test.go @@ -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) }) }