Skip to content

Commit

Permalink
AssetManagerTest: longer timeouts on async tests for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Nov 15, 2023
1 parent bbed587 commit 314b5de
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/src/tests/utils/AssetManagerTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class AssetManagerTest extends StarlingTest
super.teardown();
}

@:timeout(1000)
public function testLoadEmptyQueue(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -54,6 +55,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

@:timeout(1000)
public function testLoadBitmapFromPngFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -71,6 +73,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

@:timeout(1000)
public function testLoadBitmapFromJpgFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -91,6 +94,7 @@ class AssetManagerTest extends StarlingTest
#if !flash
@Ignored
#end
@:timeout(1000)
public function testLoadBitmapFromGifFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -108,6 +112,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

@:timeout(1000)
public function testLoadXmlFromFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -125,6 +130,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

@:timeout(1000)
public function testLoadInvalidXmlFromFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -144,6 +150,7 @@ class AssetManagerTest extends StarlingTest
_manager.loadQueue(onComplete, onError);
}

@:timeout(1000)
public function testLoadJsonFromFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -161,6 +168,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

@:timeout(1000)
public function testLoadInvalidJsonFromFile(async:Async):Void
{
var errorCount:Int=0;
Expand All @@ -180,6 +188,7 @@ class AssetManagerTest extends StarlingTest
_manager.loadQueue(onComplete, onError);
}

@:timeout(1000)
public function testLoadSoundFromMp3File(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -197,6 +206,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

@:timeout(1000)
public function testLoadTextureAtlasFromFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -215,6 +225,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

@:timeout(1000)
public function testLoadFontFromFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -233,6 +244,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

@:timeout(1000)
public function testLoadByteArrayFromFile(async:Async):Void
{
var errorCount:Int = 0;
Expand All @@ -252,6 +264,7 @@ class AssetManagerTest extends StarlingTest
}, onError);
}

// @:timeout(1000)
// public function testLoadXmlFromByteArray(async:Async):Void
// {
// _manager.verbose = true;
Expand All @@ -266,6 +279,7 @@ class AssetManagerTest extends StarlingTest
// });
// }

// @:timeout(1000)
// public function testLoadJsonFromByteArray(async:Async):Void
// {
// _manager.verbose = true;
Expand All @@ -284,6 +298,7 @@ class AssetManagerTest extends StarlingTest
// this is the one target where it _should_ work
@Ignored
#end
@:timeout(1000)
public function testLoadAtfFromByteArray(async:Async):Void
{
var errorCount:Int = 0;
Expand Down Expand Up @@ -481,6 +496,7 @@ class AssetManagerTest extends StarlingTest
Assert.isFalse(texture.isDisposed);
}

@:timeout(1000)
public function testDequeueAsset(async:Async):Void
{
var errorCount:Int = 0;
Expand Down

0 comments on commit 314b5de

Please sign in to comment.