I added some tests to file_size, these were reporting fine but failed on Windows as the text file was read to be larger than it had been on Linux (PWB).
My solution is to check the OS the test is running on (Windows or not) and create a specific snapshot based on that. This means there will still be a difference in the reported file size between Windows/non-Windows but the test will be useful to see if anything else changes accidentally.
I added some tests to
file_size
, these were reporting fine but failed on Windows as the text file was read to be larger than it had been on Linux (PWB).This answer describes the issue - https://www.unix.com/.../41059-file-size-different-unix-windows.html
My solution is to check the OS the test is running on (Windows or not) and create a specific snapshot based on that. This means there will still be a difference in the reported file size between Windows/non-Windows but the test will be useful to see if anything else changes accidentally.