diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_accounting.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_accounting.c b/src/test/test_accounting.c index a1a2ec643e..25908e942c 100644 --- a/src/test/test_accounting.c +++ b/src/test/test_accounting.c @@ -34,7 +34,7 @@ test_accounting_limits(void *arg) or_state = or_state_new(); options->AccountingMax = 100; - options->AccountingRule = tor_strdup("max"); + options->AccountingRule = ACCT_MAX; tor_assert(accounting_is_enabled(options)); configure_accounting(fake_time); @@ -50,7 +50,7 @@ test_accounting_limits(void *arg) tor_assert(we_are_hibernating() == 1); options->AccountingMax = 200; - options->AccountingRule = tor_strdup("sum"); + options->AccountingRule = ACCT_SUM; accounting_add_bytes(0, 10, 1); fake_time += 1; |