Skip to content

Conversation

@GarrettBeatty
Copy link
Contributor

Fix silently failing test. the logic in OnEventFired was wrong. it was throwing exception but not failing the test. there was 2 test cases not working related to unseekable streams. the issue was i was expecting transferred bytes to set for unseekable streams but in reality we dont set it (

if (this._fileTransporterRequest.ContentLength != -1)
). so this updates the test case to expect 0 bytes for these cases for transferredbytes.

Probably we can come back to this logic in multipartupload in the future, im not sure why transferredbytes wouldnt be able to be calculated?

Motivation and Context

fix integ test

Testing

ran test locally

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

@GarrettBeatty GarrettBeatty marked this pull request as ready for review October 23, 2025 16:45
EventFired = true;
Console.WriteLine("Lifecycle Event Fired: {0}", typeof(T).Name);
Validate?.Invoke(eventArgs);
EventFired = true; // Only set if validation passes
Copy link
Contributor Author

@GarrettBeatty GarrettBeatty Oct 23, 2025

Choose a reason for hiding this comment

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

with this change, i reran the tests and they actually fail now if there is some assertion error. and then once i made the above updates to the test cases they now pass

@GarrettBeatty GarrettBeatty merged commit 1883db9 into feature/transfermanager Oct 23, 2025
1 check passed
@dscpinheiro dscpinheiro deleted the fixtest branch October 31, 2025 17:45
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