agent: fix data race in TestAgentAntiEntropy_EnableTagOverride

This commit is contained in:
Frank Schroeder 2017-06-30 13:44:07 +02:00 committed by Frank Schröder
parent 188ea638d5
commit 62b695fb17

View file

@ -312,6 +312,9 @@ func TestAgentAntiEntropy_EnableTagOverride(t *testing.T) {
r.Fatalf("err: %v", err)
}
a.state.RLock()
defer a.state.RUnlock()
// All the services should match
for id, serv := range services.NodeServices.Services {
serv.CreateIndex, serv.ModifyIndex = 0, 0