Skip to content

Commit

Permalink
Override time format option
Browse files Browse the repository at this point in the history
To ensure consistent output from achievement tests.
  • Loading branch information
jbytheway committed Apr 20, 2020
1 parent 98303c2 commit 9dfdf4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/stats_tracker_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "string_id.h"
#include "stringmaker.h"
#include "type_id.h"
#include "options_helpers.h"

TEST_CASE( "stats_tracker_count_events", "[stats]" )
{
Expand Down Expand Up @@ -228,6 +229,8 @@ TEST_CASE( "stats_tracker_watchers", "[stats]" )

TEST_CASE( "achievments_tracker", "[stats]" )
{
override_option opt( "24_HOUR", "military" );

std::map<string_id<achievement>, const achievement *> achievements_completed;
event_bus b;
stats_tracker s;
Expand Down

0 comments on commit 9dfdf4f

Please sign in to comment.