milvus/internal/util/flowgraph
Eng Zer Jun 438790744d
test: use T.Setenv to set env vars in tests (#19649)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-10-11 18:43:23 +08:00
..
flow_graph_test.go Simplify flow graph node to pipeline mode (#19667) 2022-10-10 22:15:22 +08:00
flow_graph.go Simplify flow graph node to pipeline mode (#19667) 2022-10-10 22:15:22 +08:00
input_node_test.go test: use T.Setenv to set env vars in tests (#19649) 2022-10-11 18:43:23 +08:00
input_node.go Simplify flow graph node to pipeline mode (#19667) 2022-10-10 22:15:22 +08:00
message_test.go
message.go Improve the close method in the graph (#19100) 2022-09-09 10:00:36 +08:00
node_test.go test: use T.Setenv to set env vars in tests (#19649) 2022-10-11 18:43:23 +08:00
node.go Simplify flow graph node to pipeline mode (#19667) 2022-10-10 22:15:22 +08:00
type_def.go