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
Samuel Karp fd94bae0b8
awslogs: fix flaky TestLogBlocking unit test
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>
2019-09-20 16:06:54 -07:00
..
cloudwatchlogs.go awslogs: refactor create() 2019-09-03 10:39:10 +02:00
cloudwatchlogs_test.go awslogs: fix flaky TestLogBlocking unit test 2019-09-20 16:06:54 -07:00
cwlogsiface_mock_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00