Skip to content

Commit

Permalink
Fix Linting
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Oct 6, 2024
1 parent 24d11d4 commit 9ebf133
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/adaptive-sampling-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ check_tracegen_probability() {
local url="http://localhost:5778/api/sampling?service=tracegen"
response=$(curl -s "$url")
probability=$(echo "$response" | jq .operationSampling | jq -r '.perOperationStrategies[] | select(.operation=="lets-go")' | jq .probabilisticSampling.samplingRate)
if [ ! -z "$probability" ]; then
if [ -n "$probability" ]; then
if (( $(echo "$probability < $threshold" |bc -l) )); then
return 0
fi
fi
return -1
return 1
}

check_adaptive_sampling() {
Expand All @@ -81,7 +81,7 @@ check_adaptive_sampling() {
sleep $wait_seconds
done
if [[ "$success" == "false" ]]; then
echo "❌ ERROR: Adaptive sampling probability did not drop below "$threshold"."
echo "❌ ERROR: Adaptive sampling probability did not drop below $threshold."
exit 1
else
echo "✅ Adaptive sampling probability integration test passed"
Expand Down

0 comments on commit 9ebf133

Please sign in to comment.