diff --git a/miosix/_tools/testsuite/testsuite.cpp b/miosix/_tools/testsuite/testsuite.cpp
index 061470b5bb104180ed62d62c85297c0a797aa3f8..2060aa17d00f855798854c1ffba2242fc1aec77b 100644
--- a/miosix/_tools/testsuite/testsuite.cpp
+++ b/miosix/_tools/testsuite/testsuite.cpp
@@ -2026,9 +2026,11 @@ void t10_p1(void *argv)
 void test_10()
 {
     test_name("Exception handling");
-    Thread::sleep(10);
     Thread *t=Thread::create(t10_p1,1024+512,0,NULL);
-    Thread::sleep(80);
+    //This sleep needs to be long enough to let the other thread print the
+    //"An exception propagated ..." string on the serial port, otherwise the
+    //test fails because the other thread still exists because it is printing.
+    Thread::sleep(100);
     if(Thread::exists(t)) fail("Thread not deleted");
     pass();
 }