1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger/awslogs
Eng Zer Jun 36049a04d2
test: use T.Setenv to set env vars in tests
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>
2022-04-23 17:44:16 +08:00
..
cloudwatchlogs.go panic() instead of logrus.Fatal() in init funcs 2022-04-21 12:15:20 +02:00
cloudwatchlogs_test.go test: use T.Setenv to set env vars in tests 2022-04-23 17:44:16 +08:00
cwlogsiface_mock_test.go awslogs: replace channel-based mocks 2022-01-10 18:42:11 -08:00