File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Tests/GraphQLTests/FieldExecutionStrategyTests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import Dispatch
2
2
@testable import GraphQL
3
3
import XCTest
4
4
5
+ let queue = DispatchQueue ( label: " testQueue " )
6
+
5
7
class FieldExecutionStrategyTests : XCTestCase {
6
8
enum StrategyError : Error {
7
9
case exampleError( msg: String )
@@ -24,7 +26,7 @@ class FieldExecutionStrategyTests: XCTestCase {
24
26
let group = DispatchGroup ( )
25
27
group. enter ( )
26
28
27
- DispatchQueue . global ( ) . asyncAfter ( wallDeadline: . now( ) + 0.1 ) {
29
+ queue . asyncAfter ( wallDeadline: . now( ) + 0.1 ) {
28
30
group. leave ( )
29
31
}
30
32
@@ -41,7 +43,7 @@ class FieldExecutionStrategyTests: XCTestCase {
41
43
let g = DispatchGroup ( )
42
44
g. enter ( )
43
45
44
- DispatchQueue . global ( ) . asyncAfter ( wallDeadline: . now( ) + 0.1 ) {
46
+ queue . asyncAfter ( wallDeadline: . now( ) + 0.1 ) {
45
47
g. leave ( )
46
48
}
47
49
You can’t perform that action at this time.
0 commit comments