Minor url cache test enhancement (#4535)

<!-- 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
This commit is contained in:
Abhishek Pandey 2023-10-24 18:01:01 -07:00 committed by GitHub
parent c4bbb8fda2
commit 82fa185085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,6 +184,9 @@ func (suite *URLCacheIntegrationSuite) TestURLCacheBasic() {
// Validate that exactly 1 delta query was made by url cache // Validate that exactly 1 delta query was made by url cache
require.Equal(t, 1, uc.refreshCount) require.Equal(t, 1, uc.refreshCount)
// Validate that the prev delta base stays the same
require.Equal(t, du.URL, uc.prevDelta)
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------