Skip to content

Commit

Permalink
issues #64 technical debt
Browse files Browse the repository at this point in the history
  • Loading branch information
e154 committed Aug 2, 2022
1 parent 84a06c6 commit b69e862
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/plugins/weather_met_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
package plugins

import (
"fmt"
"github.com/e154/smart-home/common/debug"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -148,6 +150,8 @@ func TestWeatherMet(t *testing.T) {

switch v := msg.(type) {
case events.EventPassAttributes:
fmt.Println("-----1")
debug.Println(v)
ch <- v
case events.EventAddedActor:

Expand All @@ -174,9 +178,11 @@ func TestWeatherMet(t *testing.T) {
var ok bool
select {
case msg = <-ch:
fmt.Println("-----2")
ok = true
break
case <-ticker.C:
fmt.Println("-----3")
break
}

Expand Down

0 comments on commit b69e862

Please sign in to comment.