func setExpectationForLoggingLevel()

in TwitterLoggingServiceTests/TLSLoggingSwiftTests.swift [173:178]


    func setExpectationForLoggingLevel(_ level: TLSLogLevel)  {
        _ = expectation(forNotification: .LoggingSwiftTestOutputStreamNotification, object: nil) { note in
            let messageInfo: TLSLogMessageInfo = note.object as! TLSLogMessageInfo
            return messageInfo.level == level
        }
    }