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

[BUG] Port runner tests to Windows #1038

Open
prasadtalasila opened this issue Nov 4, 2024 · 0 comments
Open

[BUG] Port runner tests to Windows #1038

prasadtalasila opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@prasadtalasila
Copy link
Contributor

Describe the bug

The runner tests are failing on Windows OS when tested on github actions

To Reproduce

Steps to reproduce the behavior:

  1. Go to './github/workflows/runner.yml'
  2. Replace line-18 (runs-on: ubuntu-latest) with lines-18 to 21 of lib-ms.yml
    strategy:
      matrix:
        os: [windows-latest, ubuntu-latest]
    runs-on: ${{ matrix.os }}
  3. Check the Github actions of runner
  4. See error for windows-latest
FAIL test/unit/util.spec.ts
  Check utils library
    × Should correctly resolve absolute path (6 ms)

  ● Check utils library › Should correctly resolve absolute path

    expect(received).toEqual(expected) // deep equality

    Expected: "C:Usersdtaas"
    Received: "C:\\Usersdtaas"

       8 |       // prettier-ignore
       9 |       // eslint-disable-next-line no-useless-escape
    > 10 |       expect(resolveFile('C:\Users\dtaas')).toEqual('C:\Users\dtaas');
         |                                             ^
      11 |     } else {
      12 |       expect(resolveFile('/opt/dtaas')).toEqual('/opt/dtaas');
      13 |     }

      at Object.<anonymous> (test/unit/util.spec.ts:10:45)

Expected behavior

Github action is successful for windows as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant