 import UIKit
 import XCTest
+
+private var testQueueTag = 0xbeaf
+
+private let kOnePromiseTestsQueue: dispatch_queue_t = {
+    let q = dispatch_queue_create("jp.ko9.OnePromiseTest", DISPATCH_QUEUE_CONCURRENT)
+
+    dispatch_queue_set_specific(q, &testQueueTag, &testQueueTag, nil)
+
+    return q
+    }()
 
 class OnePromiseTests: XCTestCase {
 


        return NSError(domain: "test.SomeError", code: code, userInfo: nil)
    }
}



                return np
            })
            .then(kOnePromiseTestsQueue, { (s) in
                XCTAssertTrue(self.isInTestDispatchQueue())
                XCTAssertEqual(s, "2000")

                expectation.fulfill()
            })

        promise.fulfill(1000)
        self.waitForExpectationsWithTimeout(1.0, handler: nil)
    }
}
