mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 05:53:19 +02:00
Rename "roles" to "units". Put units in their own folders.
This commit is contained in:
14
lib/units/device/support/channels.js
Normal file
14
lib/units/device/support/channels.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var syrup = require('syrup')
|
||||
|
||||
var logger = require('../../../util/logger')
|
||||
var ChannelManager = require('../../../wire/channelmanager')
|
||||
|
||||
module.exports = syrup.serial()
|
||||
.define(function() {
|
||||
var log = logger.createLogger('device:support:channels')
|
||||
var channels = new ChannelManager()
|
||||
channels.on('timeout', function(channel) {
|
||||
log.info('Channel "%s" timed out', channel)
|
||||
})
|
||||
return channels
|
||||
})
|
||||
Reference in New Issue
Block a user