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