moby/daemon/logger
Samuel Karp 183cac25f9
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>
(cherry picked from commit fd94bae0b8)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-09-25 21:43:08 +02:00
..
awslogs awslogs: fix flaky TestLogBlocking unit test 2019-09-25 21:43:08 +02:00
etwlogs Add canonical import comment 2018-02-05 16:51:57 -05:00
fluentd bump fluent/fluent-logger-golang v1.4.0 2019-04-16 11:06:30 +02:00
gcplogs Various code-cleanup 2018-05-23 17:50:54 +02:00
gelf Format code with gofmt -s from go-1.11beta1 2018-09-06 15:24:16 -07:00
journald journald/read: fix/unify errors 2019-08-09 16:50:39 -07:00
jsonfilelog Use assert.NilError() instead of assert.Assert() 2019-01-21 13:16:02 +01:00
local Use assert.NilError() instead of assert.Assert() 2019-01-21 13:16:02 +01:00
logentries Add canonical import comment 2018-02-05 16:51:57 -05:00
loggerutils logger: fix follow logs for max-file=1 2019-09-23 11:29:52 -07:00
splunk Be more conservative for Windows in TestFrequency for Splunk 2019-09-25 17:31:30 +02:00
syslog Add options validation to syslog logger test 2018-12-24 20:43:41 +01:00
templates Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
adapter.go Adds PartialLogMetadata to encode protobuf for logger plugins 2019-04-09 16:14:33 +05:00
adapter_test.go daemon.ContainerLogs(): fix resource leak on follow 2018-09-06 11:47:42 -07:00
copier.go Add metrics for log failures/partials 2018-05-10 17:22:37 -04:00
copier_test.go Improve partial message support in logger 2018-04-11 13:26:28 -07:00
factory.go Various code-cleanup 2018-05-23 17:50:54 +02:00
logger.go Cleanup duplication in daemon files 2018-11-13 10:42:57 +08:00
logger_test.go Improve partial message support in logger 2018-04-11 13:26:28 -07:00
loginfo.go Add canonical import comment 2018-02-05 16:51:57 -05:00
metrics.go Add metrics for log failures/partials 2018-05-10 17:22:37 -04:00
plugin.go Entropy cannot be saved 2019-06-11 17:40:09 +02:00
plugin_unix.go Fix logging plugin crash unrecoverable 2018-05-14 16:51:56 -04:00
plugin_unsupported.go Add canonical import comment 2018-02-05 16:51:57 -05:00
proxy.go Add canonical import comment 2018-02-05 16:51:57 -05:00
ring.go Update documentation for RingLogger's ring buffer 2018-05-16 18:52:50 -06:00
ring_test.go Update documentation for RingLogger's ring buffer 2018-05-16 18:52:50 -06:00