Reformat code
This commit is contained in:
parent
e6119c0616
commit
e803de1004
@ -30,13 +30,13 @@ func (f fakeVideoSource) Read(dest *gocv.Mat) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
func TestOpencvCameraPart(t *testing.T) {
|
||||
var muPubEvents sync.Mutex
|
||||
publishedEvents := make(map[string]*[]byte)
|
||||
oldPublish := publish
|
||||
defer func() {
|
||||
publish = oldPublish}()
|
||||
publish = oldPublish
|
||||
}()
|
||||
publish = func(_ mqtt.Client, topic string, payload *[]byte) {
|
||||
muPubEvents.Lock()
|
||||
defer muPubEvents.Unlock()
|
||||
@ -54,7 +54,6 @@ func TestOpencvCameraPart(t *testing.T) {
|
||||
imgBuffered: &imgBuffer,
|
||||
}
|
||||
|
||||
|
||||
go part.Start()
|
||||
time.Sleep(5 * time.Millisecond)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user