summaryrefslogtreecommitdiff
path: root/worker_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-25 15:55:51 +0300
committerWolfy-J <[email protected]>2020-10-25 15:55:51 +0300
commitba5c562f9038ba434e655fb82c44597fcccaff16 (patch)
treeff112b9dcffda63bc40094a57d0df61622368445 /worker_test.go
parent3bdf7d02d83d1ff4726f3fbb01a45d016f39abec (diff)
- massive update in roadrunner 2.0 abstractions
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)