Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lpgauth committed Mar 18, 2024
1 parent 6ea611a commit 5c51474
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CACHEGRIND=qcachegrind
ELVIS=./bin/elvis
REBAR3=$(shell which rebar3)
ifeq ($(REBAR3),)
REBAR3=./bin/rebar3
Expand All @@ -23,10 +22,6 @@ edoc:
@echo "Running rebar3 edoc..."
@$(REBAR3) as edoc edoc

elvis:
@echo "Running elvis rock..."
@$(ELVIS) rock

eunit:
@echo "Running rebar3 eunit..."
@$(REBAR3) do eunit -cv, cover -v
Expand All @@ -42,7 +37,7 @@ profile:
@_build/test/lib/fprofx/erlgrindx -p fprofx.analysis
@$(CACHEGRIND) fprofx.cgrind

test: elvis xref eunit dialyzer
test: xref eunit dialyzer

xref:
@echo "Running rebar3 xref..."
Expand Down
2 changes: 1 addition & 1 deletion include/marina_internal.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
-define(DEFAULT_CONNECT_RETRY, 500).
-define(DEFAULT_CONSISTENCY_LEVEL, ?CONSISTENCY_ONE).
-define(DEFAULT_FLAGS, []).
-define(DEFAULT_IP, "172.18.0.2").
-define(DEFAULT_IP, "192.168.215.2").
-define(DEFAULT_PID, self()).
-define(DEFAULT_POOL_SIZE, 16).
-define(DEFAULT_POOL_STRATEGY, random).
Expand Down
2 changes: 1 addition & 1 deletion src/marina_request.erl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ startup(FrameFlags) ->
marina_frame:encode(#frame {
stream = ?DEFAULT_STREAM,
opcode = ?OP_STARTUP,
flags = FrameFlags,
flags = 0,
body = [marina_types:encode_string_map(Body)]
}).

Expand Down
3 changes: 1 addition & 2 deletions test/marina_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ query(Query) ->
}).

setup(KeyVals) ->
application:start(sasl),
% error_logger:tty(false),
error_logger:tty(false),
bootstrap(),
application:load(marina),
set_env(KeyVals),
Expand Down

0 comments on commit 5c51474

Please sign in to comment.