Skip to content

Commit 81db091

Browse files
author
ttt161
committed
fix tests
1 parent 56cc3db commit 81db091

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

apps/ff_server/test/ff_withdrawal_session_repair_SUITE.erl

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,7 @@ repair_failed_session_with_failure(C) ->
152152
<<"task_type">> := <<"init">>
153153
},
154154
#{
155-
%% MAYBE io_lib:format instead of json compatible value
156-
<<"error">> := [
157-
<<"exception">>,
158-
<<"error">>,
159-
#{<<"badmatch">> := #{<<"error">> := <<"notfound">>}}
160-
],
155+
<<"error">> := <<"{exception,error,{badmatch,{error,notfound}}}">>,
161156
<<"task_status">> := <<"error">>,
162157
<<"task_type">> := <<"timeout">>
163158
},
@@ -180,11 +175,7 @@ repair_failed_session_with_failure(C) ->
180175
},
181176
#{
182177
%% Error because can`t notify withdrawal machine
183-
<<"error">> := [
184-
<<"exception">>,
185-
<<"error">>,
186-
#{<<"unable_to_finish_session">> := #{<<"error">> := <<"notfound">>}}
187-
],
178+
<<"error">> := <<"{exception,error,{unable_to_finish_session,{error,notfound}}}">>,
188179
<<"task_status">> := <<"error">>,
189180
<<"task_type">> := <<"timeout">>
190181
}

0 commit comments

Comments
 (0)