1. modify acess log test file path
@@ -29,9 +29,10 @@ import (
func TestAccessLog_Write_to_file(t *testing.T) {
msg := "this is test msg"
- filePath := "C:\\Users\\60125\\Desktop\\dubbo-go\\logs\\dubbo-go-access.log"
+ filePath := "/home/dubbo-go-proxy/logs/dubbo-go-access"
accessLogWriter := &model.AccessLogWriter{AccessLogDataChan: make(chan model.AccessLogData, constant.LogDataBuffer)}
accessLogWriter.Write()
accessLogWriter.Writer(model.AccessLogData{AccessLogMsg: msg, AccessLogConfig: model.AccessLogConfig{OutPutPath: filePath, Enable: true}})
assert.FileExists(t, filePath, nil)
+
}
