File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ if ! echo "$METRICS_RESPONSE" | grep -q '"name":"users"'; then
109
109
fi
110
110
111
111
# Extract the value of the users metric and check if it matches expected value
112
- USERS_VALUE=$( echo " $METRICS_RESPONSE " | grep -A 10 ' "name":"users"' | grep -o ' "value":[0-9]*' | sed ' s/"value"://' )
112
+ USERS_VALUE=$( echo " $METRICS_RESPONSE " | sed -n ' / "name":"users"/,/"value":[0-9]*/p ' | grep -o ' "value":[0-9]*' | sed ' s/"value"://' | head -1 )
113
113
114
114
if [ " $USERS_VALUE " != " $EXPECTED_USERS_VALUE " ]; then
115
115
echo " Error: Users metric value mismatch. Expected: $EXPECTED_USERS_VALUE , Found: $USERS_VALUE "
Original file line number Diff line number Diff line change 3
3
from logdash .metrics import MetricOperation
4
4
5
5
__all__ = ["create_logdash" , "Logger" , "MetricOperation" ]
6
- __version__ = "1.0.6 "
6
+ __version__ = "1.0.7 "
You can’t perform that action at this time.
0 commit comments