Skip to content

Commit

Permalink
test: make the integration test not dependent on version
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgeiler authored Oct 28, 2024
1 parent cca6b3a commit d289c6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ unit:
go vet $$(go list ./... | grep -v /vendor/)

.PHONY: integration
integration: VERSION=v1337
integration: build
bats integration

Expand Down
2 changes: 1 addition & 1 deletion integration/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ wait_for() {

@test "it prints the version" {
run "${BATS_TEST_DIRNAME}/../supercronic" -version
[[ "$output" =~ ^v1337$ ]]
[[ "$output" != "<unset> ]]
}
@test "it starts" {
Expand Down

0 comments on commit d289c6c

Please sign in to comment.