From d289c6c3be5fb9ddbb4965e2c0d78e3b0e8833a1 Mon Sep 17 00:00:00 2001 From: Jonas Geiler Date: Mon, 28 Oct 2024 16:32:35 +0100 Subject: [PATCH 1/2] test: make the integration test not dependent on version --- Makefile | 1 - integration/test.bats | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7df77ee..cd5e617 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,6 @@ unit: go vet $$(go list ./... | grep -v /vendor/) .PHONY: integration -integration: VERSION=v1337 integration: build bats integration diff --git a/integration/test.bats b/integration/test.bats index 8eb2060..33e6b52 100755 --- a/integration/test.bats +++ b/integration/test.bats @@ -29,7 +29,7 @@ wait_for() { @test "it prints the version" { run "${BATS_TEST_DIRNAME}/../supercronic" -version - [[ "$output" =~ ^v1337$ ]] + [[ "$output" != " ]] } @test "it starts" { From e71c64f026e4eef482d2ec28d8c52cedab5e2550 Mon Sep 17 00:00:00 2001 From: Jonas Geiler Date: Tue, 29 Oct 2024 05:39:23 +0100 Subject: [PATCH 2/2] fix: add missing closing quote --- integration/test.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/test.bats b/integration/test.bats index 33e6b52..e486779 100755 --- a/integration/test.bats +++ b/integration/test.bats @@ -29,7 +29,7 @@ wait_for() { @test "it prints the version" { run "${BATS_TEST_DIRNAME}/../supercronic" -version - [[ "$output" != " ]] + [[ "$output" != "" ]] } @test "it starts" {