mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 20:16:37 +00:00
Fix unit test fail due to race condition #1063
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
This commit is contained in:
committed by
Alex Ellis
parent
aa96bfe66c
commit
c5122279c9
@ -36,7 +36,7 @@ func Test_Describe_DescribesThePrometheusMetrics(t *testing.T) {
|
|||||||
exporter := NewExporter(metricsOptions, nil)
|
exporter := NewExporter(metricsOptions, nil)
|
||||||
|
|
||||||
ch := make(chan *prometheus.Desc)
|
ch := make(chan *prometheus.Desc)
|
||||||
defer close(ch)
|
// defer close(ch)
|
||||||
|
|
||||||
go exporter.Describe(ch)
|
go exporter.Describe(ch)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user