Mas i449 directpromptofdeletions (#450)

* Move prompt of deletions to Inker

It is a series of casts, so no reason to offload this to the clerk.  Simplifies potential races in shutdown

* Rename

* Change cache sizes

In the hope of making test more consistent
This commit is contained in:
Martin Sumner 2024-09-04 09:04:24 +01:00 committed by GitHub
parent af0f2bb2cf
commit 30ec9214ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 22 deletions

View file

@ -388,6 +388,8 @@ fetchput_snapshot(_Config) ->
RootPath = testutil:reset_filestructure(),
StartOpts1 = [{root_path, RootPath},
{max_journalsize, 30000000},
{cache_size, 2000},
{max_pencillercachesize, 16000},
{sync_strategy, none}],
{ok, Bookie1} = leveled_bookie:book_start(StartOpts1),
{TestObject, TestSpec} = testutil:generate_testobject(),

View file

@ -30,6 +30,7 @@
[{gen_fsm, send_event, 2}]}]).
-define(NUMTESTS, 1000).
-define(TEST_TIMEOUT, 300).
-define(QC_OUT(P),
eqc:on_output(fun(Str, Args) ->
io:format(user, Str, Args) end, P)).
@ -42,7 +43,7 @@
eqc_test_() ->
Timeout = 50,
Timeout = ?TEST_TIMEOUT,
{timeout, max(2 * Timeout, Timeout + 10),
?_assertEqual(true, eqc:quickcheck(eqc:testing_time(Timeout, ?QC_OUT(prop_db()))))}.