mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
fixed error with not found filename in copy test, remove debug logs
This commit is contained in:
parent
66c3307dd5
commit
adc8aab809
3 changed files with 5 additions and 5 deletions
|
@ -424,8 +424,9 @@ func copySrcSubProcFunc(proc process, cia copyInitialData, cancel context.Cancel
|
||||||
// We don't care about the error.
|
// We don't care about the error.
|
||||||
fi, err := os.Stat(file)
|
fi, err := os.Stat(file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf(" ** DEBUG: STAT ERROR: %v\n", err)
|
er := fmt.Errorf("DEBUG: ERROR while os.Stat(file): copySrcProcFunc, fileInfo: %v, err: %v\n", fi, err)
|
||||||
fmt.Printf(" ** DEBUG: fi: %#v\n", fi)
|
proc.errorKernel.errSend(proc, Message{}, er, logWarning)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We want to be able to send the reply message when the copying is done,
|
// We want to be able to send the reply message when the copying is done,
|
||||||
|
|
|
@ -17,8 +17,6 @@ func reqWriteFileOrSocket(isAppend bool, proc process, message Message) error {
|
||||||
fileName, folderTree := selectFileNaming(message, proc)
|
fileName, folderTree := selectFileNaming(message, proc)
|
||||||
file := filepath.Join(folderTree, fileName)
|
file := filepath.Join(folderTree, fileName)
|
||||||
|
|
||||||
fmt.Printf("******************* DEBUG: CHECK IF SOCKET OR FILE: %v\n", file)
|
|
||||||
|
|
||||||
// log.Fatalf("EXITING\n")
|
// log.Fatalf("EXITING\n")
|
||||||
|
|
||||||
// Check the file is a unix socket, and if it is we write the
|
// Check the file is a unix socket, and if it is we write the
|
||||||
|
|
|
@ -446,7 +446,8 @@ func checkREQCopySrc(conf *Configuration, t *testing.T, tmpDir string) error {
|
||||||
"methodArgs": ["` + srcfp + `","central","` + dstfp + `","20","10"],
|
"methodArgs": ["` + srcfp + `","central","` + dstfp + `","20","10"],
|
||||||
"ACKTimeout":5,
|
"ACKTimeout":5,
|
||||||
"retries":3,
|
"retries":3,
|
||||||
"methodTimeout": 10
|
"methodTimeout": 10,
|
||||||
|
"fileName": "filecopy2.log"
|
||||||
}
|
}
|
||||||
]`
|
]`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue