prometheus/storage/remote
Dan Milstein 007907b410 Fix one of the tests for a remote storage QueueManager
Specifically, the TestSpawnNotMoreThanMaxConcurrentSendsGoroutines was failing on a fresh checkout of master.

The test had a race condition -- it would only pass if one of the
spawned goroutines happened to very quickly pull a set of samples off an
internal queue.

This patch rewrites the test so that it deterministically waits until
all samples have been pulled off that queue.  In case of errors, it also
now reports on the difference between what it expected and what it found.

I verified that, if the code under test is deliberately broken, the test
successfully reports on that.
2016-08-23 16:26:33 -04:00
..
graphite fix several minor golint style issues 2016-05-11 14:26:18 +02:00
influxdb Switch to common/log 2015-10-03 10:21:43 +02:00
opentsdb Add missing license headers 2016-04-13 16:08:22 +02:00
queue_manager.go Consistently use the Seconds() method for conversion of durations 2016-07-07 15:24:35 +02:00
queue_manager_test.go Fix one of the tests for a remote storage QueueManager 2016-08-23 16:26:33 -04:00
remote.go web: return status code and error message for config resource 2016-07-15 10:15:24 +02:00