新增测试初始代码

This commit is contained in:
boyce
2019-07-27 15:55:59 +08:00
parent 525dac5937
commit 34abb27947
5 changed files with 39 additions and 13 deletions

21
Test/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "N_All",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}/main.go",
"env": {
"GOPATH":"${workspaceRoot}/../../../../../"
},
"args": ["NodeId=1"],
"output": "./OriginServer.exe"
}
]
}

3
Test/.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"go.gopath": "${workspaceRoot}/../../../../../"
}

View File

@@ -1,25 +1,17 @@
{
"PublicServiceList":["logiclog"],
"//":" Auto or Manual",
"ClusterPattern":"Auto",
"MasterNodeId":1,
"NodeList":[
{
"NodeID":1,
"NodeName":"N_Node1",
"ServerAddr":"127.0.0.1:8080",
"ServerAddr":"127.0.0.1:10000",
"ServiceList":["CTestService1","CTestService2","HttpServerService","WSServerService","CWebSockService"],
"ClusterNode":["N_Node2"]
},
{
"NodeID":2,
"NodeName":"N_Node2",
"ServerAddr":"127.0.0.1:8081",
"ServiceList":["TestService1","collectTickLogService"],
"ClusterNode":[]
}
]

View File

@@ -81,7 +81,7 @@ func (slf *CTestService2) RPC_Add(arg *InputData, ret *int) error {
}
func main() {
node := originnode.NewOrginNode()
node := originnode.NewOriginNode()
if node == nil {
return
}

View File

@@ -0,0 +1,10 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"http.systemCertificates": false
}
}