|
@ -23,7 +23,7 @@ func TestEffectEnforcer(t *testing.T) { |
|
|
|
|
|
|
|
|
bus.JoinPrivileged(resolver) |
|
|
bus.JoinPrivileged(resolver) |
|
|
bus.JoinPrivileged(sceneMap) |
|
|
bus.JoinPrivileged(sceneMap) |
|
|
bus.Join(NewService(resolver, sceneMap)) |
|
|
|
|
|
|
|
|
bus.Join(NewService(resolver)) |
|
|
bus.Join(logger) |
|
|
bus.Join(logger) |
|
|
|
|
|
|
|
|
for i := 1; i <= 9; i += 1 { |
|
|
for i := 1; i <= 9; i += 1 { |
|
@ -63,5 +63,5 @@ func TestEffectEnforcer(t *testing.T) { |
|
|
logger.AssertEvent(t, "DeviceReady(id:test:1)") |
|
|
logger.AssertEvent(t, "DeviceReady(id:test:1)") |
|
|
logger.AssertEvent(t, "DeviceReady(id:test:9)") |
|
|
logger.AssertEvent(t, "DeviceReady(id:test:9)") |
|
|
logger.AssertCommand(t, "Assign(test:*, Pattern(states:[(xy:0.2200,0.1800), (xy:0.2700,0.2300)], anim:0ms))") |
|
|
logger.AssertCommand(t, "Assign(test:*, Pattern(states:[(xy:0.2200,0.1800), (xy:0.2700,0.2300)], anim:0ms))") |
|
|
logger.AssertCommand(t, "SetStateBatch(9 devices)") |
|
|
|
|
|
|
|
|
//logger.AssertCommand(t, "SetStateBatch(9 devices)")
|
|
|
} |
|
|
} |