From 82fa185085df8c05c13f89a03d8f9aa0ec4b1a60 Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Tue, 24 Oct 2023 18:01:01 -0700 Subject: [PATCH] Minor url cache test enhancement (#4535) 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? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [x] :robot: Supportability/Tests - [ ] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [ ] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- src/internal/m365/collection/drive/url_cache_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal/m365/collection/drive/url_cache_test.go b/src/internal/m365/collection/drive/url_cache_test.go index da6e5c732e..62f2d2e30f 100644 --- a/src/internal/m365/collection/drive/url_cache_test.go +++ b/src/internal/m365/collection/drive/url_cache_test.go @@ -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) } // ---------------------------------------------------------------------------