From e29528c0e0606e384d563297124e876844afa248 Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Fri, 26 May 2023 11:18:52 +0530 Subject: [PATCH] Fix more nightly test (#3517) Follow up to https://github.com/alcionai/corso/pull/3494 . Missed these in the earlier PR. --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [x] :robot: Supportability/Tests - [ ] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [ ] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- src/cli/backup/onedrive_e2e_test.go | 2 +- src/cli/backup/sharepoint_e2e_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/backup/onedrive_e2e_test.go b/src/cli/backup/onedrive_e2e_test.go index 7e7c2a148..da163198e 100644 --- a/src/cli/backup/onedrive_e2e_test.go +++ b/src/cli/backup/onedrive_e2e_test.go @@ -92,7 +92,7 @@ func (suite *NoBackupOneDriveE2ESuite) TestOneDriveBackupListCmd_empty() { result := suite.recorder.String() // as an offhand check: the result should contain the m365 user id - assert.Equal(t, "No backups available\n", result) + assert.True(t, strings.HasSuffix(result, "No backups available\n")) } func (suite *NoBackupOneDriveE2ESuite) TestOneDriveBackupCmd_UserNotInTenant() { diff --git a/src/cli/backup/sharepoint_e2e_test.go b/src/cli/backup/sharepoint_e2e_test.go index adb9aa7ae..91e611655 100644 --- a/src/cli/backup/sharepoint_e2e_test.go +++ b/src/cli/backup/sharepoint_e2e_test.go @@ -91,7 +91,7 @@ func (suite *NoBackupSharePointE2ESuite) TestSharePointBackupListCmd_empty() { result := suite.recorder.String() // as an offhand check: the result should contain the m365 sitet id - assert.Equal(t, "No backups available\n", result) + assert.True(t, strings.HasSuffix(result, "No backups available\n")) } // ---------------------------------------------------------------------------