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

hurlfmt alters test logic #1577

Closed
plul opened this issue May 30, 2023 · 1 comment · Fixed by #1581
Closed

hurlfmt alters test logic #1577

plul opened this issue May 30, 2023 · 1 comment · Fixed by #1581
Labels
bug Something isn't working
Milestone

Comments

@plul
Copy link

plul commented May 30, 2023

What is the current bug behavior?

Running hurlfmt on a Hurl file corrupts test logic.

Steps to reproduce

Run hurlfmt on this:

GET https://example.com
HTTP 200
[Asserts]
bytes count < 100
bytes count > 100
bytes count <= 100
bytes count >= 100

and you get this:

GET https://example.com
HTTP 200
[Asserts]
bytes count > 100
bytes count > 100
bytes count >= 100
bytes count >= 100

< changed to > in two assertions.

Execution context

  • Hurl Version (hurl --version): 3.0.0
  • Operating system and version: NixOS
@plul plul added the bug Something isn't working label May 30, 2023
@jcamiel
Copy link
Collaborator

jcamiel commented May 30, 2023

Arf, sorry for this! We'll fix it in the next Hurl version!

@jcamiel jcamiel added this to the 4.0.0 milestone May 30, 2023
@fabricereix fabricereix linked a pull request May 31, 2023 that will close this issue
@fabricereix fabricereix modified the milestones: 4.0.0, 3.0.1 Jun 1, 2023
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
None yet
Development

Successfully merging a pull request may close this issue.

3 participants