Skip to content

Commit 52bbd38

Browse files
committed
Fix RocksDB test 5: correct ldb put command syntax
The ldb put command requires key and value as separate arguments, not piped input. Changed from: echo "testvalue" | ldb put testkey ... To: ldb put testkey testvalue ... This fixes the error: 'Failed: <key> and <value> must be specified for the put command'
1 parent 65309ec commit 52bbd38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-rocksdb.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ jobs:
171171
# Use ldb to create and manipulate a database
172172
cd "$TEST_DIR"
173173
174-
# Put a key-value pair
175-
echo "testvalue" | ldb put testkey --db="$TEST_DIR/testdb" --create_if_missing 2>&1
174+
# Put a key-value pair (ldb put requires key and value as separate arguments)
175+
ldb put testkey testvalue --db="$TEST_DIR/testdb" --create_if_missing 2>&1
176176
177177
# Get the value back
178178
RESULT=$(ldb get testkey --db="$TEST_DIR/testdb" 2>&1 || echo "")

0 commit comments

Comments
 (0)