Skip to content

Snapshot testing failures when running windows tests #7282

@pearigee

Description

@pearigee

Please make sure you have searched for information in the following guides.

Library Name

gapic-node-processing

A screenshot that you have tested with "Try this API".

The snapshot testing fails on windows (but succeeds locally and on linux). See
https://github.com/googleapis/google-cloud-node/actions/runs/22196578876/job/64198380458?pr=7279

Image

When using a diff tool to find the difference detected by the test, no diff is detected:

Image

I suspect this is related to the way Windows handles whitespace.

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

https://github.com/googleapis/google-cloud-node/actions/runs/22196578876/job/64198380458?pr=7279

A step-by-step description of how to reproduce the issue, based on the linked reproduction.

  1. Run the windows unit tests for gapic-node-processing using our windows CI.

A clear and concise description of what the bug is, and what you expected to happen.

I would expect this test to pass on Windows, Linux, and MacOS uniformly.

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

The behavior between operating systems should be consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    size: stype: processA process-related concern. May include testing, release, or the like.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions