Commit Graph

11 Commits (7385770014fd4862860cd4fa471da778d8e365bd)

Author SHA1 Message Date
Eng Zer Jun 5375161777
test: use `T.TempDir` to create temporary test directory (#16758)
This commit replaces `ioutil.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `ioutil.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Fixes: #16759
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-05-04 11:35:50 +08:00
XuanYang-cn cddbeedf07
[skip ci]Update license in log (#11147)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2021-11-03 19:23:28 +08:00
Xiaofan a0b98dacda
Skip reconsume tt msgstream when datacoord restart (#9684)
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
2021-10-15 11:46:33 +08:00
sunby 79516dacd2
Add log unit tests (#7561)
Issue: #7491
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-09-08 15:03:59 +08:00
sunby 668d10d1da
Add log unit tests (#7524)
issue: #7491
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-09-07 16:07:58 +08:00
sunby 5e0d724738
Add log unit tests (#7492)
issue: #7491
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-09-06 16:50:42 +08:00
sunby b855c283cb
Remove meaningless log test (#5025)
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-04-24 05:07:58 +00:00
sunby 0f2f46f39d Add copyright
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-04-19 11:35:38 +08:00
sunby 5769c000a1 Find failed python tests and add skip mark "r0.3-test"
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-02-19 15:37:04 +08:00
bigsheeper d8f41db823 Fix search crash error
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2021-02-19 13:56:01 +08:00
sunby 5b61182140 Add zap log
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-02-18 19:53:55 +08:00