Skip to content

Commit a21fd9f

Browse files
committed
Tests for how generational compaction moves data between files
1 parent d3aa083 commit a21fd9f

File tree

3 files changed

+544
-2
lines changed

3 files changed

+544
-2
lines changed

test/elixir/lib/couch/dbtest.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ defmodule Couch.DBTest do
300300
resp.body
301301
end
302302

303-
def compact(db_name) do
304-
resp = Couch.post("/#{db_name}/_compact")
303+
def compact(db_name, gen \\ 0) do
304+
resp = Couch.post("/#{db_name}/_compact?gen=#{gen}")
305305
assert resp.status_code == 202
306306

307307
retry_until(

0 commit comments

Comments
 (0)