Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
055c01c6
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
055c01c6
编写于
9月 26, 2021
作者:
W
wenzhouwww
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
set go proxy as 'goproxy.cn' and modify case error about case002
上级
6ba94735
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
7 deletion
+6
-7
tests/gotest/batchtest.bat
tests/gotest/batchtest.bat
+1
-1
tests/gotest/batchtest.sh
tests/gotest/batchtest.sh
+1
-1
tests/gotest/case002/case002.bat
tests/gotest/case002/case002.bat
+1
-1
tests/gotest/case002/case002.go
tests/gotest/case002/case002.go
+2
-3
tests/gotest/case002/case002.sh
tests/gotest/case002/case002.sh
+1
-1
未找到文件。
tests/gotest/batchtest.bat
浏览文件 @
055c01c6
...
...
@@ -8,7 +8,7 @@ if "%severIp%"=="" (set severIp=127.0.0.1)
if
"
%serverPort%
"
==
""
(
set
serverPort
=
6030
)
go
env
-w
GO111MODULE
=
on
go
env
-w
GOPROXY
=
https
://goproxy.
io
,
direct
go
env
-w
GOPROXY
=
https
://goproxy.
cn
,
direct
cd
case001
case001
.bat
%severIp%
%serverPort%
...
...
tests/gotest/batchtest.sh
浏览文件 @
055c01c6
...
...
@@ -14,7 +14,7 @@ if [ ! -n "$serverPort" ]; then
fi
go
env
-w
GO111MODULE
=
on
go
env
-w
GOPROXY
=
https://goproxy.
io
,direct
go
env
-w
GOPROXY
=
https://goproxy.
cn
,direct
bash ./case001/case001.sh
$severIp
$serverPort
bash ./case002/case002.sh
$severIp
$serverPort
...
...
tests/gotest/case002/case002.bat
浏览文件 @
055c01c6
@echo
off
echo
====
start
run
cases00
1
.go
echo
====
start
run
cases00
2
.go
del
go
.
*
go
mod
init
demotest
...
...
tests/gotest/case002/case002.go
浏览文件 @
055c01c6
...
...
@@ -43,10 +43,9 @@ func main() {
os
.
Exit
(
1
)
}
defer
db
.
Close
()
db
.
Exec
(
"drop
if exists database
test"
)
db
.
Exec
(
"create
if not exists database
test"
)
db
.
Exec
(
"drop
database if exists
test"
)
db
.
Exec
(
"create
database if not exists
test"
)
db
.
Exec
(
"use test"
)
db
.
Exec
(
"drop if exists database test"
)
db
.
Exec
(
"create table test (ts timestamp ,level int)"
)
for
i
:=
0
;
i
<
10
;
i
++
{
sqlcmd
:=
fmt
.
Sprintf
(
"insert into test values(%d,%d)"
,
ts
+
i
,
i
)
...
...
tests/gotest/case002/case002.sh
浏览文件 @
055c01c6
#!/bin/bash
echo
"==== start run cases00
1
.go"
echo
"==== start run cases00
2
.go"
set
+e
#set -x
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录