Skip to content

Commit 4a793be

Browse files
committed
Changes from testing in local environment
1 parent ca97954 commit 4a793be

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,15 @@ test_id_endpoint() {
411411
# Create test object to get an ID
412412
local test_id=$(create_test_object '{"type":"IdTest","value":"test"}' "Creating test object")
413413

414+
# Validate object creation
415+
if [ -z "$test_id" ] || [ "$test_id" == "null" ]; then
416+
log_failure "Failed to create test object for ID test"
417+
ENDPOINT_STATUS["id"]="❌ Test Setup Failed"
418+
ENDPOINT_COLD_TIMES["id"]="N/A"
419+
ENDPOINT_WARM_TIMES["id"]="N/A"
420+
return
421+
fi
422+
414423
clear_cache
415424

416425
# Test ID retrieval with cold cache

cache/__tests__/cache-metrics.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,15 @@ test_id_endpoint() {
430430
# Create test object to get an ID
431431
local test_id=$(create_test_object '{"type":"IdTest","value":"test"}' "Creating test object")
432432

433+
# Validate object creation
434+
if [ -z "$test_id" ] || [ "$test_id" == "null" ]; then
435+
log_failure "Failed to create test object for ID test"
436+
ENDPOINT_STATUS["id"]="❌ Test Setup Failed"
437+
ENDPOINT_COLD_TIMES["id"]="N/A"
438+
ENDPOINT_WARM_TIMES["id"]="N/A"
439+
return
440+
fi
441+
433442
clear_cache
434443

435444
# Test ID retrieval with cold cache

0 commit comments

Comments
 (0)