Trigger appropriate actions on Drayd in SetState
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Thu, 19 Oct 2017 12:35:55 +0000 (14:35 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 27 Apr 2018 15:43:52 +0000 (17:43 +0200)
commit167a3729197514cb851efdd2138fa3a68f385d53
treefbdae9da4b314da2db11854382a2645f86169dd1
parent5f21ae58229a35be363f71ed45d05fc7d5130185
Trigger appropriate actions on Drayd in SetState

Usage of mutexes is added into tests, as now more goroutines
can operate on WorkerList at the same time.
SetState changes are updated and enhanced to cover all possible
scenarios.

Change-Id: I99b00309e5ab937720d5848e3a3279e966c0cbad
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
workers/worker_list_test.go
workers/workers.go