Skip to content

Commit

Permalink
fix new bats file spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeGoldsmith committed Apr 10, 2024
1 parent 86f47c4 commit 06dea5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions smoke-tests/smoke-sdk-grpc-distroless.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ setup_file() {
wait_for_ready_app ${CONTAINER_NAME}
curl --silent "http://localhost:5001/weatherforecast"
wait_for_traces
wait_for_metrics 15
wait_for_metrics 15
}

teardown_file() {
cp collector/data.json collector/data-results/data-${CONTAINER_NAME}.json
cp collector/data.json collector/data-results/data-${CONTAINER_NAME}.json
docker-compose stop ${CONTAINER_NAME}
docker-compose restart collector
wait_for_flush
Expand All @@ -35,6 +35,6 @@ teardown_file() {
}

@test "Manual instrumentation produces metrics" {
result=$(metric_names_for ${METRICS_DATASET})
assert_equal "$result" '"sheep"'
result=$(metric_names_for ${METRICS_DATASET})
assert_equal "$result" '"sheep"'
}
6 changes: 3 additions & 3 deletions smoke-tests/smoke-sdk-http-distroless.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ setup_file() {
wait_for_ready_app ${CONTAINER_NAME}
curl --silent "http://localhost:5001/weatherforecast"
wait_for_traces
wait_for_metrics 15
wait_for_metrics 15
}

teardown_file() {
Expand All @@ -35,6 +35,6 @@ teardown_file() {
}

@test "Manual instrumentation produces metrics" {
result=$(metric_names_for ${METRICS_DATASET})
assert_equal "$result" '"sheep"'
result=$(metric_names_for ${METRICS_DATASET})
assert_equal "$result" '"sheep"'
}

0 comments on commit 06dea5f

Please sign in to comment.