Update to /connector/exchange/restore_test.go

Adds clarity during test failure.
This commit is contained in:
Danny Adams 2023-02-01 18:08:10 -05:00
parent a7c56a7d24
commit 83d239ac11

View File

@ -177,7 +177,7 @@ func (suite *ExchangeRestoreSuite) TestRestoreExchangeObject() {
},
{
name: "Test Mail: Item Attachment",
bytes: mockconnector.GetMockMessageWithItemAttachment("Item Attachment"),
bytes: mockconnector.GetMockMessageWithItemAttachmentEvent("Event Item Attachment"),
category: path.EmailCategory,
destination: func(t *testing.T, ctx context.Context) string {
folderName := "TestRestoreMailItemAttachment: " + common.FormatSimpleDateTime(now)
@ -278,7 +278,7 @@ func (suite *ExchangeRestoreSuite) TestRestoreExchangeObject() {
userID,
)
assert.NoError(t, err, support.ConnectorStackErrorTrace(err))
assert.NotNil(t, info, "item info is populated")
assert.NotNil(t, info, "item info was not populated")
assert.NoError(t, deleters[test.category].DeleteContainer(ctx, userID, destination))
})
}