Keep cluster dolt_gc tests in place with auto_gc disabled.

This commit is contained in:
Neil Macneale IV
2025-10-16 09:10:18 -07:00
parent 3c1d4c772c
commit 2263d186fd

View File

@@ -1507,6 +1507,9 @@ tests:
listener:
host: 0.0.0.0
port: {{get_port "server1"}}
behavior:
auto_gc_behavior:
enable: false
cluster:
standby_remotes:
- name: standby
@@ -1526,6 +1529,9 @@ tests:
listener:
host: 0.0.0.0
port: {{get_port "server2"}}
behavior:
auto_gc_behavior:
enable: false
cluster:
standby_remotes:
- name: standby
@@ -1548,6 +1554,8 @@ tests:
- exec: 'insert into vals values (3,3)'
- exec: 'insert into vals values (4,4)'
- exec: 'call dolt_gc()'
- exec: 'select * from vals'
error_match: "this connection can no longer be used"
- on: server1
queries:
- query: "select `database`, standby_remote, role, epoch, replication_lag_millis, current_error from dolt_cluster.dolt_cluster_status order by `database` asc"
@@ -1568,6 +1576,8 @@ tests:
- [3,3]
- [4,4]
- exec: 'call dolt_gc()'
error_match: "must be the primary"
- exec: 'call dolt_gc("--shallow")'
- name: dropped database is no longer present on replica
multi_repos:
- name: server1