k3s/pkg/client/record
Kris dd9301ede9 Fix data race by eliminating concurrency in test
I broke out the error retry logic into a named function that could be
tested independently of the rest of the event processing framework. This
allows the test to know when the retry logic is done.

The problem with the original test was there was no reliable way to know
when it was done trying record an event. A sentinal event was being
used, but there is no ordering guarantee. I could have added
synchronization around attempts tracking to fix the data race, but the
test case was still fundamentally flawed and would error occasionally.
2016-01-07 13:00:42 -08:00
..
doc.go Move version agnostic parts of client 2015-09-10 17:17:59 -07:00
event.go Fix data race by eliminating concurrency in test 2016-01-07 13:00:42 -08:00
event_test.go Fix data race by eliminating concurrency in test 2016-01-07 13:00:42 -08:00
events_cache.go This commit adds type information to events. 2015-11-24 09:59:54 -05:00
events_cache_test.go This commit fixes tests. 2015-11-24 09:16:12 -05:00
fake.go This commit adds type information to events. 2015-11-24 09:59:54 -05:00