         
         _ = group.wait(timeout: .distantFuture)
         
-        // TODO: flaky test
-        // https://travis-ci.org/groue/GRDB.swift/jobs/236100291
-        // https://travis-ci.org/groue/GRDB.swift/jobs/236100305
-        XCTAssertTrue(numberOfTries > 0)    // Busy handler has been used.
+        XCTAssertTrue(busyCallbackCalled)
     }
 }

        
        _ = group.wait(timeout: .distantFuture)
        
        XCTAssertTrue(numberOfTries > 0)    // Busy handler has been used.
    }

    func testReaderDuringDefaultTransaction() throws {

        //                                      BEGIN EXCLUSIVE TRANSACTION
        //                                      COMMIT
        
        var busyCallbackCalled = false
        self.busyCallback = { n in
            busyCallbackCalled = true
            s2.signal()
            return true
        }
