Fix bats test config to avoid duplicate YAML keys

The start_sql_server_with_config function creates a config with
a 'behavior:' section and appends the provided config file. This
caused a YAML parse error when our config also had a 'behavior:' key.

Fixed by creating a complete config file and using start_sql_server_with_args
instead, which avoids the duplicate key issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Neil Macneale IV
2025-11-12 23:27:50 +00:00
parent 44ba402768
commit 237fe89968

View File

@@ -30,11 +30,20 @@ setup() {
cd ../
# Create config file to enable branch activity tracking
echo "behavior:
branch_activity_tracking: true" > server.yaml
# Create complete config file with branch activity tracking enabled
cat > server.yaml <<EOF
log_level: debug
start_sql_server_with_config "" server.yaml
listener:
host: 0.0.0.0
max_connections: 10
behavior:
autocommit: false
branch_activity_tracking: true
EOF
start_sql_server_with_args "" "--config" "server.yaml"
}
teardown() {