We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7067c1d commit 052d455Copy full SHA for 052d455
screencapture/diagnostics/consumer_test.go
@@ -4,6 +4,7 @@ import (
4
"strconv"
5
"strings"
6
"testing"
7
+ "time"
8
9
"github.com/danielpaulus/quicktime_video_hack/screencapture/coremedia"
10
"github.com/danielpaulus/quicktime_video_hack/screencapture/diagnostics"
@@ -14,7 +15,7 @@ func TestConsumer(t *testing.T) {
14
15
//buffered channel because Stop will block otherwise
16
waiter := WriteWaiter{make(chan []byte, 100)}
17
- d := diagnostics.NewDiagnosticsConsumer(waiter, 0)
18
+ d := diagnostics.NewDiagnosticsConsumer(waiter, time.Millisecond*100)
19
header := <-waiter.written
20
assert.Equal(t, diagnostics.CSVHeader, string(header))
21
audioBytes := 35
0 commit comments