mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fd94bae0b8
TestLogBlocking is intended to test that the Log method blocks by default. It does this by mocking out the internals of the awslogs.logStream and replacing one of its internal channels with one that is controlled by the test. The call to Log occurs inside a goroutine. Go may or may not schedule the goroutine immediately and the blocking may or may not be observed outside the goroutine immediately due to decisions made by the Go runtime. This change adds a small timeout for test failure so that the Go runtime has the opportunity to run the goroutine before the test fails. Signed-off-by: Samuel Karp <skarp@amazon.com> |
||
---|---|---|
.. | ||
cloudwatchlogs.go | ||
cloudwatchlogs_test.go | ||
cwlogsiface_mock_test.go |