File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1142,7 +1142,7 @@ jobs:
1142
1142
result=${result%\%}
1143
1143
echo "result:"
1144
1144
echo $result
1145
- threshold=35.60
1145
+ threshold=35.9
1146
1146
if (( $(echo "$result >= $threshold" |bc -l) )); then
1147
1147
echo "It is equal or greater than threshold, passed!"
1148
1148
else
Original file line number Diff line number Diff line change @@ -289,4 +289,12 @@ func TestWatch(t *testing.T) {
289
289
assert .Equal (expectedOptions .Suffix , opts .Suffix )
290
290
assert .Equal (expectedOptions .Events , opts .Events )
291
291
}
292
+
293
+ // Test-9: getWatchOptionsFromReq invalid url
294
+ u , err = url .Parse ("http://localhost/api/v1/wach/bucket2?prefix=&suffix=" )
295
+ req = & http.Request {
296
+ URL : u ,
297
+ }
298
+ opts , err = getWatchOptionsFromReq (req )
299
+ assert .Error (err )
292
300
}
You can’t perform that action at this time.
0 commit comments