mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix another test race
Signed-off-by: Alex Greenbank <alex.greenbank@grafana.com>
This commit is contained in:
parent
b884b15f39
commit
ca20eb9f32
|
@ -1315,6 +1315,8 @@ func (c *TestWriteClient) GetProtoVersions(_ context.Context) (string, error) {
|
|||
}
|
||||
|
||||
func (c *TestWriteClient) GetLastRWHeader() string {
|
||||
c.mtx.Lock()
|
||||
defer c.mtx.Unlock()
|
||||
c.currstep++
|
||||
if len(c.steps) > 0 {
|
||||
return c.steps[c.currstep].lastRWHeader
|
||||
|
|
Loading…
Reference in a new issue