mirror of
https://github.com/dolthub/dolt.git
synced 2025-12-30 08:50:01 -06:00
Keep cluster dolt_gc tests in place with auto_gc disabled.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user