Skip to content

Commit ac902ae

Browse files
committed
test: fix storage-luatest/garbage_collector_test.lua
It'll be impossible to add new tests to the garbage_collector, since the replication between `replica_1_a` and `replica_1_b` is broken, due to the prohibited replace ACTIVE -> SENT in test_route_map_is_cleared. Let's disable checks for `replica_1_b`, so that replication remains alive. NO_DOC=testfix
1 parent 9ad0e27 commit ac902ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/storage-luatest/garbage_collector_test.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,7 @@ test_group.test_unit_bucket_test_gc = function(g)
10431043
end
10441044

10451045
test_group.test_route_map_is_cleared = function(g)
1046+
g.replica_1_b:exec(bucket_set_protection, {false})
10461047
g.replica_1_a:exec(function()
10471048
local destination = 'some destination'
10481049
local bid = _G.get_first_bucket()
@@ -1070,4 +1071,6 @@ test_group.test_route_map_is_cleared = function(g)
10701071
ivshard.storage.internal.is_bucket_protected = true
10711072
ivconst.BUCKET_SENT_GARBAGE_DELAY = old_timeout
10721073
end)
1074+
vtest.cluster_wait_vclock_all(g)
1075+
g.replica_1_b:exec(bucket_set_protection, {true})
10731076
end

0 commit comments

Comments
 (0)