mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-12 02:58:53 -06:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user