Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

bats script not working #69

@mohit1007

Description

@mohit1007

@test "Pinging server" {
run curl -I http://localhost:8088/tracks?key=9 | head -n 1| cut -d $' ' -f2
[ "$status" -eq 200 ]
}

Essentially, this means, grab the status code?
But i get the following error:
`[ "$status" -eq 200 ]' failed with status 2
/var/folders/7w/h7x7t8wn66v8bts2_cr1d3sm0000gp/T/bats.87996.src: line 10: [: : integer expression expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions