Browse Source

[tests] better `async.done()` position for server tests

Aleksandr Kuzmenko 5 years ago
parent
commit
f8410a4040
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/server/src/utils/macro/TestBuilder.macro.hx

+ 1 - 1
tests/server/src/utils/macro/TestBuilder.macro.hx

@@ -76,7 +76,7 @@ class TestBuilder {
 	}
 	}
 
 
 	static function failOnException(asyncName:String, e:Expr):Expr {
 	static function failOnException(asyncName:String, e:Expr):Expr {
-		return macro try {
+		return macro @:pos(e.pos) try {
 			$e;
 			$e;
 		} catch(e) {
 		} catch(e) {
 			Assert.fail(e.details());
 			Assert.fail(e.details());