Reenable OneDrive kopia-assisted incrementals (#2137)

## Description

Reenable kopia-assisted incrementals now that #2136 contains the bugfix patch

## Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No 

## Type of change

- [ ] 🌻 Feature
- [x] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

## Issue(s)

* closes #2133

## Test Plan

- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
ashmrtn 2023-01-12 16:35:45 -08:00 committed by GitHub
parent 8af3945ed1
commit edd08269f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ var (
_ data.Collection = &Collection{}
_ data.Stream = &Item{}
_ data.StreamInfo = &Item{}
// _ data.StreamModTime = &Item{}
_ data.StreamModTime = &Item{}
)
// Collection represents a set of OneDrive objects retrieved from M365
@ -158,9 +158,9 @@ func (od *Item) Info() details.ItemInfo {
return od.info
}
// func (od *Item) ModTime() time.Time {
// return od.info.Modified()
// }
func (od *Item) ModTime() time.Time {
return od.info.Modified()
}
// populateItems iterates through items added to the collection
// and uses the collection `itemReader` to read the item

View File

@ -179,9 +179,9 @@ func (suite *CollectionUnitTestSuite) TestCollection() {
assert.Equal(t, testItemName, readItem.UUID())
// require.Implements(t, (*data.StreamModTime)(nil), readItem)
// mt := readItem.(data.StreamModTime)
// assert.Equal(t, now, mt.ModTime())
require.Implements(t, (*data.StreamModTime)(nil), readItem)
mt := readItem.(data.StreamModTime)
assert.Equal(t, now, mt.ModTime())
readData, err := io.ReadAll(readItem.ToReader())
require.NoError(t, err)