Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Minor url cache test enhancement (#4535)
Browse files Browse the repository at this point in the history
<!-- PR description-->

Add a check to make sure url cache's previous delta base doesn't change after refresh

---

#### 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

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [x] 🤖 Supportability/Tests
- [ ] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

#### Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

#### Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ] ⚡ Unit test
- [ ] 💚 E2E
  • Loading branch information
pandeyabs authored Oct 25, 2023
1 parent c4bbb8f commit 82fa185
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/internal/m365/collection/drive/url_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ func (suite *URLCacheIntegrationSuite) TestURLCacheBasic() {

// Validate that exactly 1 delta query was made by url cache
require.Equal(t, 1, uc.refreshCount)

// Validate that the prev delta base stays the same
require.Equal(t, du.URL, uc.prevDelta)
}

// ---------------------------------------------------------------------------
Expand Down

0 comments on commit 82fa185

Please sign in to comment.