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")) } // ---------------------------------------------------------------------------