<commit_before>-include_lib("eunit/include/eunit.hrl").

all_test_() ->
  {foreach,
    fun() -> test_setup() end,
    fun(V) -> test_teardown(V) end,
    [
      {"test_initial_load", ?_test(test_initial_load())},
      {"test_reload_same_layout", ?_test(test_reload_same_layout())},
      {"test_loadout_change", ?_test(test_loadout_change())},
      {"test_loadout_change_with_bootstrap", ?_test(test_loadout_change_with_bootstrap())},
      {"test_unload_servers", ?_test(test_unload_servers())}
    ]}.

test_initial_load() ->
  ?debugFmt("node ~p", [node()]),
  Partitions = partitions:create_partitions(1, node(), [node()]),
  expect_start_servers([storage_1, storage_2147483649]),
  storage_manager:load(node(), Partitions, lists:map(fun({_,P}) -> P end, Partitions)),
  verify().
  
test_reload_same_layout() ->
  Partitions = partitions:create_partitions(1, node(), [node()]),<commit_msg>get rid of errant debug<commit_after>-include_lib("eunit/include/eunit.hrl").

all_test_() ->
  {foreach,
    fun() -> test_setup() end,
    fun(V) -> test_teardown(V) end,
    [
      {"test_initial_load", ?_test(test_initial_load())},
      {"test_reload_same_layout", ?_test(test_reload_same_layout())},
      {"test_loadout_change", ?_test(test_loadout_change())},
      {"test_loadout_change_with_bootstrap", ?_test(test_loadout_change_with_bootstrap())},
      {"test_unload_servers", ?_test(test_unload_servers())}
    ]}.

test_initial_load() ->
  Partitions = partitions:create_partitions(1, node(), [node()]),
  expect_start_servers([storage_1, storage_2147483649]),
  storage_manager:load(node(), Partitions, lists:map(fun({_,P}) -> P end, Partitions)),
  verify().
  
test_reload_same_layout() ->
  Partitions = partitions:create_partitions(1, node(), [node()]),
{'fraction_non_alphanumeric': 0.17832957110609482, 'fraction_numerical': 0.014672686230248307, 'mean_word_length': 5.92578125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3078019', 'n_tokens_mistral': 643, 'n_tokens_neox': 632, 'n_words': 82}