summaryrefslogtreecommitdiff
path: root/worker_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker_test.go')
-rw-r--r--worker_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/worker_test.go b/worker_test.go
index a90b7ef2..d2744345 100644
--- a/worker_test.go
+++ b/worker_test.go
@@ -91,6 +91,7 @@ func TestErrBuffer_Write_Event(t *testing.T) {
assert.Equal(t, []byte("hello\n"), log)
wg.Done()
}
+ buf.enable = true
_, err := buf.Write([]byte("hello\n"))
if err != nil {
@@ -116,6 +117,8 @@ func TestErrBuffer_Write_Event_Separated(t *testing.T) {
assert.Equal(t, []byte("hello\nending"), log)
wg.Done()
}
+ buf.enable = true
+
_, err := buf.Write([]byte("hel"))
if err != nil {
t.Errorf("fail to write: error %v", err)