Skip to content

Commit ebcc2da

Browse files
committed
changes from testing across environments
1 parent 1904584 commit ebcc2da

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cache/__tests__/cache-metrics-worst-case.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ test_update_endpoint_empty() {
18711871
local full_object="$test_obj"
18721872

18731873
for i in $(seq 1 $NUM_ITERATIONS); do
1874-
local update_body=$(echo "$full_object" | jq ". + {value: \"updated_$i\"}" 2>/dev/null)
1874+
local update_body=$(echo "$full_object" | jq ".value = \"updated_$i\"" 2>/dev/null)
18751875

18761876
local result=$(measure_endpoint "${API_BASE}/api/update" "PUT" \
18771877
"$update_body" \
@@ -1934,7 +1934,7 @@ test_update_endpoint_full() {
19341934
local full_object="$test_obj"
19351935

19361936
for i in $(seq 1 $NUM_ITERATIONS); do
1937-
local update_body=$(echo "$full_object" | jq ". + {value: \"updated_full_$i\"}" 2>/dev/null)
1937+
local update_body=$(echo "$full_object" | jq ".value = \"updated_full_$i\"" 2>/dev/null)
19381938

19391939
local result=$(measure_endpoint "${API_BASE}/api/update" "PUT" \
19401940
"$update_body" \

cache/__tests__/cache-metrics.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ test_update_endpoint_empty() {
18881888
local full_object="$test_obj"
18891889

18901890
for i in $(seq 1 $NUM_ITERATIONS); do
1891-
local update_body=$(echo "$full_object" | jq ". + {value: \"updated_$i\"}" 2>/dev/null)
1891+
local update_body=$(echo "$full_object" | jq ".value = \"updated_$i\"" 2>/dev/null)
18921892

18931893
local result=$(measure_endpoint "${API_BASE}/api/update" "PUT" \
18941894
"$update_body" \
@@ -1951,7 +1951,7 @@ test_update_endpoint_full() {
19511951
local full_object="$test_obj"
19521952

19531953
for i in $(seq 1 $NUM_ITERATIONS); do
1954-
local update_body=$(echo "$full_object" | jq ". + {value: \"updated_full_$i\"}" 2>/dev/null)
1954+
local update_body=$(echo "$full_object" | jq ".value = \"updated_full_$i\"" 2>/dev/null)
19551955

19561956
local result=$(measure_endpoint "${API_BASE}/api/update" "PUT" \
19571957
"$update_body" \

0 commit comments

Comments
 (0)