SKTestSession failTransactionsEnabled not working

If I purchase a product with a test session in my unit test, everything works as expected. I see a purchased transaction on my payment queue.

But if I set the property to make it fail, nothing happens. Shouldn't I observe a transactions with transactionState == .failed?
Code Block
let session = try! SKTestSession(configurationFileNamed: "Configuration")
session.disableDialogs = true
session.clearTransactions()
session.failTransactionsEnabled = true
session.failureError = .unknown
session.buyProduct(productIdentifier: productID)

Has anyone used this?

This observer normally gets called. But not when I set failTransactionsEnabled.
Code Block
    public func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) {


    



I had a same problem +1.
SKTestSession failTransactionsEnabled not working
 
 
Q