mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
test: fix test case issue
This commit is contained in:
@@ -809,7 +809,8 @@ func (r *Runner) startIPCReader() {
|
||||
line := scanner.Text()
|
||||
|
||||
var ipcMsg IPCMessage
|
||||
if err := json.Unmarshal([]byte(line), &ipcMsg); err == nil && ipcMsg.IPC {
|
||||
err := json.Unmarshal([]byte(line), &ipcMsg)
|
||||
if err == nil && ipcMsg.IPC {
|
||||
// Only handle as IPC if it's valid JSON AND has IPC flag set
|
||||
if r.ipcHandler != nil {
|
||||
r.ipcHandler(ipcMsg)
|
||||
|
||||
Reference in New Issue
Block a user