From bf81b534adb95842d1e1921102ace5e3b55c14d2 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Thu, 22 Jun 2017 08:52:18 +0300 Subject: [PATCH] Resetting profiles had to be in the retry body (#4428) --- tests/app/profiling/profiling-tests.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/app/profiling/profiling-tests.ts b/tests/app/profiling/profiling-tests.ts index 34c1a6012..125bf1dab 100644 --- a/tests/app/profiling/profiling-tests.ts +++ b/tests/app/profiling/profiling-tests.ts @@ -150,8 +150,9 @@ export function test_profile_decorator_handles_exceptions() { } export function test_start_stop_performance() { - resetProfiles(); retry(5, () => { + resetProfiles(); + const count = 10000; const name = "test_start_stop_performance"; @@ -167,8 +168,9 @@ export function test_start_stop_performance() { }; export function test_profile_decorator_performance() { - resetProfiles(); retry(5, () => { + resetProfiles(); + var start = Date.now(); const count = 10000; const test = new TestClass(); @@ -186,9 +188,9 @@ export function test_profile_decorator_performance() { } export function test_reentrancy() { - resetProfiles(); // reentrant retry(5, () => { + resetProfiles(); const test = new TestClass(); test.reentrant(); });