Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the unit test for BlobstoreIterator into a table format #5488

Merged
merged 6 commits into from
Dec 19, 2023

Conversation

agautam478
Copy link
Contributor

What changed?

Converted the already present test that was using Testing suite into and independent table test.

  • The pItr variable is an iterator created by fetcher.ConcreteExecutionIterator, which iterates over concrete executions.
  • The NewBlobstoreWriter is used to create a writer for the blobstore, and executions are added to this writer.
  • After adding all executions, the writer is flushed, and assertions are made to check the correctness of the operation.
  • The NewBlobstoreIterator is then used to iterate over the written blobs, and assertions are made to ensure the data integrity.

Why?
These changes were made as a part of our initiative to increase the code coverage and also to maintain consistency with it's sister BlobstoreWriter test.

How did you test it?
yes. Tested locally.

Potential risks
NA

Release notes
NA

Documentation Changes
NA

@agautam478 agautam478 merged commit cf47922 into cadence-workflow:master Dec 19, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants