Fixing race conditions in the code base (#5966)

* Adding initial race detector

* Remove setting of config twice

* Fixing config file watch and config reload on license save

* Fixing config file watch and config reload on license save

* Fixing build error

* Fixing locking issue

* Fixing makefile

* Fixing race in config

* Fixing race in status unit test

* Adding EE race tests

* Fixing race in cluster info

* Removing code that's isn't needed

* Fixing some more races

* Fixing govet issue
Этот коммит содержится в:
Corey Hulen
2017-04-04 11:42:07 -07:00
коммит произвёл Harrison Healey
родитель 32460bf63b
Коммит 6bf080393d
26 изменённых файлов: 1438 добавлений и 207 удалений

Просмотреть файл

@@ -16,6 +16,16 @@ func TestClusterInfoJson(t *testing.T) {
if cluster.Id != result.Id {
t.Fatal("Ids do not match")
}
cluster.SetAlive(true)
if !cluster.IsAlive() {
t.Fatal("should be live")
}
cluster.SetAlive(false)
if cluster.IsAlive() {
t.Fatal("should be not live")
}
}
func TestClusterInfosJson(t *testing.T) {