Skip to content

Commit

Permalink
Mark tests that use sleep calls as slow, so we can ignore them when r…
Browse files Browse the repository at this point in the history
…unning unit tests in development
  • Loading branch information
wisskid committed Jan 16, 2021
1 parent 3af2df2 commit fedc127
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@ public function testClearCacheCacheFile()
$this->assertNull($tpl->cached->handler->getCachedContent($tpl3));
$this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl4));
}

/**
* @group slow
*/
public function testClearCacheExpired()
{
$this->smarty->caching = true;
Expand Down Expand Up @@ -399,7 +403,7 @@ public function testClearCacheCacheFileSub()
* @runInSeparateProcess
* @preserveGlobalState disabled
* @dataProvider data
*
* @group slow
*/
public function testCache($lockTime, $lockTimeout, $compile_id, $cache_id, $isCached, $tmin, $tmax, $forceCompile, $forceCache, $update, $testNumber, $compileTestNumber, $renderTestNumber, $testName)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/UnitTests/ResourceTests/Extends/ExtendsResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function testCompileBlockGrandChildMustCompile_021_12()
* test grandchild/child/parent dependency test2
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_2()
{
Expand Down Expand Up @@ -193,7 +193,7 @@ public function testCompileBlockGrandChildMustCompile_021_32()
* test grandchild/child/parent dependency test4
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_4()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public function testCompileBlockGrandChildMustCompile_021_12()
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_2()
{
Expand Down Expand Up @@ -645,7 +645,7 @@ public function testCompileBlockGrandChildMustCompile_021_2()
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_3()
{
Expand All @@ -670,7 +670,7 @@ public function testCompileBlockGrandChildMustCompile_021_3()
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_32()
{
Expand All @@ -692,6 +692,7 @@ public function testCompileBlockGrandChildMustCompile_021_32()
*
* @runInSeparateProcess
* @preserveGlobalState disabled
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_4()
{
Expand All @@ -716,6 +717,7 @@ public function testCompileBlockGrandChildMustCompile_021_4()
*
* @runInSeparateProcess
* @preserveGlobalState disabled
* @group slow
*/
public function testCompileBlockGrandChildMustCompile_021_42()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ public function testInsertPluginCaching3_1()
* test insert plugin caching 2
* @runInSeparateProcess
* @preserveGlobalState disabled
* @group slow
*/
public function testInsertPluginCaching3_2()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function testSmartyNow() {
}
/**
* test {$smarty.now nocache}
*
* @group slow
*/
public function testSmartyNowNocache() {
$this->smarty->setCaching(true);
Expand Down

0 comments on commit fedc127

Please sign in to comment.