<commit_before>#include "minunit.h"
#include <config/config.h>
#include <server.h>

FILE *LOG_FILE = NULL;

char *test_Config_load() 
{
    list_t *servers = Config_load_servers("tests/config.sqlite", "mongrel2.org");

    mu_assert(servers != NULL, "Should get a server list.");
    mu_assert(list_count(servers) == 1, "Failed to load the server.");<commit_msg>Better error message for why this test fails.<commit_after>#include "minunit.h"
#include <config/config.h>
#include <server.h>

FILE *LOG_FILE = NULL;

char *test_Config_load() 
{
    list_t *servers = Config_load_servers("tests/config.sqlite", "mongrel2.org");

    mu_assert(servers != NULL, "Should get a server list, is mongrel2 running already?");
    mu_assert(list_count(servers) == 1, "Failed to load the server.");
{'fraction_non_alphanumeric': 0.14522292993630573, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 5.140625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6160689', 'n_tokens_mistral': 269, 'n_tokens_neox': 271, 'n_words': 68}