diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2019-09-01 12:10:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-01 12:10:00 -0400 |
commit | c031b0f24ef7289438817da6e6c244cc85df44ad (patch) | |
tree | 054a887e6966dc4926373fdf84f57412405ba678 | |
parent | 542b93a8526873dd3bbc0440aad3e7d3093ac4d8 (diff) | |
parent | 6d6a441370bee4aa78c1d2916e74b52a9b49d40a (diff) |
Merge pull request #2153 from tolbrino/tb-fix-ct-retry
Fix case clause which used wrong element order
-rw-r--r-- | src/cth_retry.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cth_retry.erl b/src/cth_retry.erl index 7056c71..b745c35 100644 --- a/src/cth_retry.erl +++ b/src/cth_retry.erl @@ -94,7 +94,7 @@ on_tc_skip(Suite, TC, {tc_auto_skip, _}, State=#state{suite=Suite, groups=Groups {end_per_group, _} -> Acc; init_per_suite -> Acc; end_per_suite -> Acc; - {_Group, Case} -> [{Suite, Groups, Case}|Acc]; + {Case, _Group} -> [{Suite, Groups, Case}|Acc]; TC -> [{Suite, Groups, TC}|Acc] end, State#state{suite=Suite, acc=NewAcc}; @@ -111,7 +111,7 @@ on_tc_skip(TC, {tc_auto_skip, _}, State=#state{suite=Suite, groups=Groups, acc=A {end_per_group, _} -> Acc; init_per_suite -> Acc; end_per_suite -> Acc; - {_Group, Case} -> [{Suite, Groups, Case}|Acc]; + {Case, _Group} -> [{Suite, Groups, Case}|Acc]; TC -> [{Suite, Groups, TC}|Acc] end, State#state{acc=NewAcc}; |