diff options
Diffstat (limited to 'macros')
| -rw-r--r-- | macros/src/expectation.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/expectation.rs b/macros/src/expectation.rs index 4095278..af604ae 100644 --- a/macros/src/expectation.rs +++ b/macros/src/expectation.rs @@ -427,7 +427,7 @@ impl ToTokens for Expectation                      if let ::ridicule::__private::CallCountExpectation::Times(                          times                      ) = self.call_cnt_expectation { -                        if call_cnt != times { +                        if !::std::thread::panicking() && call_cnt != times {                              panic!(                                  concat!(                                      "Expected function {} to be called {} times. Was ",  | 
