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:
parent
ad2d046d19
commit
16d384a232
@ -4,7 +4,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
@ -116,9 +115,7 @@ func (suite *BackupExchangeIntegrationSuite) TestExchangeBackupCmd() {
|
|||||||
result := recorder.String()
|
result := recorder.String()
|
||||||
t.Log("backup results", result)
|
t.Log("backup results", result)
|
||||||
|
|
||||||
// as an offhand check: the result should contain a string with the current hour
|
// as an offhand check: the result should contain the m365 user id
|
||||||
assert.Contains(t, result, time.Now().UTC().Format("2006-01-02T15"))
|
|
||||||
// and the m365 user id
|
|
||||||
assert.Contains(t, result, suite.m365UserID)
|
assert.Contains(t, result, suite.m365UserID)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user