Skip to content

Commit

Permalink
Fixup broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Skeen committed Aug 19, 2021
1 parent cb5d31f commit 38b340c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/extras.bats
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,17 @@ load test_utils
}

# Scalar autodetected
@test "Test -q 1 -w 2 -c 3" {
@test "Test auto -q 1 -w 2 -c 3" {
OUTPUT="$(test_parameters '-q 1 -w 2 -c 3')"
[ "${OUTPUT}" == "OK - tc is 1" ]
}
@test "Test -q 1 -w 2 -c 3 -t vector" {
@test "Test auto -q 1 -w 2 -c 3 -t vector" {
FULL_OUTPUT="$(test_parameters_full '-q 1 -w 2 -c 3 -t vector')"
OUTPUT=$(echo "${FULL_OUTPUT}" | tail -1)
WARNING=$(echo "${FULL_OUTPUT}" | head -1)
[ "${OUTPUT}" == "OK - tc is 1" ] && [ "${WARNING}" == "${T_DEPRECATED}" ]
}
@test "Test -q 1 -w 2 -c 3 -t scalar" {
@test "Test auto -q 1 -w 2 -c 3 -t scalar" {
FULL_OUTPUT="$(test_parameters_full '-q 1 -w 2 -c 3 -t scalar')"
OUTPUT=$(echo "${FULL_OUTPUT}" | tail -1)
WARNING=$(echo "${FULL_OUTPUT}" | head -1)
Expand Down
2 changes: 1 addition & 1 deletion tests/null.bats
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ load test_utils
}
@test "Test -q topk(1,hopefully_this_never_matches) -w 2 -c 3 -O" {
OUTPUT="$(test_parameters '-q topk(1,hopefully_this_never_matches) -w 2 -c 3 -O')"
[ "${OUTPUT}" == "OK - tc is empty" ]
[ "${OUTPUT}" == "UNKNOWN - unable to parse prometheus response" ]
}

0 comments on commit 38b340c

Please sign in to comment.