@@ -139,7 +139,9 @@ postcondition(#{state := accepted}, {call, quicer, handshake, _Args}, {ok, _}) -
139
139
true ;
140
140
postcondition (#{state := accepted }, {call , quicer , handshake , _Args }, {error , invalid_state }) ->
141
141
true ;
142
- postcondition (#{state := accepted }, {call , quicer , handshake , _Args }, {error , timeout }) ->
142
+ postcondition (#{state := closed }, {call , quicer , handshake , _ }, {error , timeout }) ->
143
+ true ;
144
+ postcondition (#{state := _ }, {call , quicer , handshake , _Args }, {error , timeout }) ->
143
145
% % @FIXME
144
146
true ;
145
147
postcondition (
@@ -209,21 +211,23 @@ postcondition(_State, {call, quicer, close_connection, _Args}, ok) ->
209
211
true ;
210
212
postcondition (_State , {call , quicer , shutdown_connection , _Args }, ok ) ->
211
213
true ;
212
- postcondition (accepted , {call , quicer , close_connection , _Args }, {error , timeout }) ->
214
+ postcondition (#{state := accepted }, {call , quicer , close_connection , _Args }, {error , timeout }) ->
215
+ true ;
216
+ postcondition (#{state := accepted }, {call , quicer , shutdown_connection , _Args }, {error , timeout }) ->
213
217
true ;
214
- postcondition (accepted , {call , quicer , shutdown_connection , _Args }, {error , timeout }) ->
218
+ postcondition (#{ state : = accepted } , {call , quicer , close_connection , _Args }, {error , closed }) ->
215
219
true ;
216
- postcondition (accepted , {call , quicer , close_connection , _Args }, {error , closed }) ->
220
+ postcondition (#{ state : = closed } , {call , quicer , close_connection , _Args }, {error , timeout }) ->
217
221
true ;
218
222
postcondition (_ , {call , quicer , shutdown_connection , [_ , _ , Tout ]}, {error , timeout }) when
219
223
Tout < 200
220
224
->
221
225
true ;
222
- postcondition (_ , {call , quicer , close_connection , [_ , _ , Tout ]}, {error , timeout }) when
226
+ postcondition (_ , {call , quicer , close_connection , [_ , Tout ]}, {error , timeout }) when
223
227
Tout < 200
224
228
->
225
229
true ;
226
- postcondition (accepted , {call , quicer , shutdown_connection , _Args }, {error , closed }) ->
230
+ postcondition (#{ state : = accepted } , {call , quicer , shutdown_connection , _Args }, {error , closed }) ->
227
231
true ;
228
232
postcondition (
229
233
#{me := Me , owner := Owner , state := State },
@@ -243,6 +247,10 @@ postcondition(
243
247
S =:= accepted orelse S =:= closed
244
248
->
245
249
true ;
250
+ postcondition (
251
+ #{state := accepted }, {call , quicer , async_csend , [_ ]}, {error , stm_send_error , aborted }
252
+ ) ->
253
+ true ;
246
254
postcondition (#{state := accepted }, {call , quicer , async_csend , [_ ]}, {error , timeout }) ->
247
255
% % @FIXME https://github.com/emqx/quic/issues/265
248
256
true ;
0 commit comments