Skip to content

Commit

Permalink
fix entitymanager test timings
Browse files Browse the repository at this point in the history
  • Loading branch information
BlenderistDev committed Aug 29, 2024
1 parent 221cc39 commit faea096
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/homeassistant/entitymanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func TestEntityManager_Run(t *testing.T) {
tt.entities(),
tt.clientList(),
tt.mqtt(),
2*time.Millisecond,
100*time.Millisecond,
tt.logger(),
)

Expand All @@ -373,12 +373,12 @@ func TestEntityManager_Run(t *testing.T) {
go func() {
stopChan = manager.Run()
}()
time.Sleep(time.Millisecond * 3)
time.Sleep(time.Millisecond * 120)

go func() {
stopChan <- struct{}{}
}()
time.Sleep(time.Millisecond * 3)
time.Sleep(time.Millisecond * 100)
return
})
}
Expand Down

0 comments on commit faea096

Please sign in to comment.