Explorar o código

[tests] dodge for green CI

see #11425
Simon Krajewski hai 1 ano
pai
achega
989bec7b06
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tests/unit/src/unit/TestNullCoalescing.hx

+ 2 - 0
tests/unit/src/unit/TestNullCoalescing.hx

@@ -119,6 +119,7 @@ class TestNullCoalescing extends Test {
 			eq(arr[i], v);
 
 		final arr = [];
+		#if !cs
 		function item(n) {
 			arr.push(n);
 			return null;
@@ -127,6 +128,7 @@ class TestNullCoalescing extends Test {
 		eq(arr.length, 3);
 		for (i => v in [1, 2, 3])
 			eq(arr[i], v);
+		#end
 
 		var b:B = cast null;
 		var c:C = cast null;