Skip to content

Commit 08ac5d1

Browse files
committed
Try make a test less time sensitive
1 parent 7a6f1f2 commit 08ac5d1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ra.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ start_in(DataDir) ->
163163
ok = logger:add_handler(ra_handler, logger_std_h, Config),
164164
_ = application:load(sasl),
165165
ok = application:set_env(sasl, sasl_error_logger, {file, SaslFile}),
166-
ok = application:stop(sasl),
166+
_ = application:stop(sasl),
167167
ok = application:start(sasl),
168168
_ = error_logger:tty(false),
169169
start([{data_dir, DataDir}]).

test/ra_machine_int_SUITE.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ meta_data(Config) ->
397397
end),
398398
ClusterName = ?config(cluster_name, Config),
399399
ServerId = ?config(server_id, Config),
400-
T = os:system_time(millisecond),
400+
T = erlang:system_time(millisecond),
401+
timer:sleep(100),
401402
ok = start_cluster(ClusterName, {module, Mod, #{}}, [ServerId]),
402403
{ok, {metadata, Idx, Term, Ts}, ServerId} =
403404
ra:process_command(ServerId, any_command),

0 commit comments

Comments
 (0)