Skip to content

fix(testing): Fix bug in testing missed due to reference to resource being re-used in memdb#567

Merged
kodiakhq[bot] merged 4 commits intomainfrom
plugin-test-fixes
Jan 3, 2023
Merged

fix(testing): Fix bug in testing missed due to reference to resource being re-used in memdb#567
kodiakhq[bot] merged 4 commits intomainfrom
plugin-test-fixes

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

No description provided.

// sort by sync time, then UUID
if resources[i].Data[syncTimeIndex].String() != resources[j].Data[syncTimeIndex].String() {
return resources[i].Data[syncTimeIndex].String() < resources[j].Data[syncTimeIndex].String()
if !resources[i].Data[syncTimeIndex].Equal(resources[j].Data[syncTimeIndex]) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also decided to do better comparison on timestamps here

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 3, 2023

⏱️ Benchmark results

Comparing with a0d4671

  • DefaultConcurrency-2 resources/s: 10,720 ⬇️ 12.07% decrease vs. a0d4671
  • Glob-2 ns/op: 147 ⬇️ 7.41% decrease vs. a0d4671
  • TablesWithChildrenDefaultConcurrency-2 resources/s: 31,815 ⬆️ 7.47% increase vs. a0d4671
  • BufferedScanner-2 ns/op: 10 ⬆️ 4.42% increase vs. a0d4671
  • LogReader-2 ns/op: 30.55 ⬇️ 0.88% decrease vs. a0d4671

@kodiakhq kodiakhq bot merged commit 95ab353 into main Jan 3, 2023
@kodiakhq kodiakhq bot deleted the plugin-test-fixes branch January 3, 2023 12:33
kodiakhq bot pushed a commit that referenced this pull request Jan 3, 2023
🤖 I have created a release *beep* *boop*
---


## [1.17.2](v1.17.1...v1.17.2) (2023-01-03)


### Bug Fixes

* **testing:** Fix bug in testing missed due to reference to resource being re-used in memdb ([#567](#567)) ([95ab353](95ab353))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants