tests: fix data race in client TestDriverManager_Fingerprint_Periodic

This commit is contained in:
Mahmood Ali 2019-05-21 09:18:22 -04:00
parent d9e59eece0
commit 296bd41c9e
1 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ func TestDriverManager_Fingerprint_Periodic(t *testing.T) {
// we get a healthy mock_driver first
testutil.WaitForResult(func() (bool, error) {
node := testClient.configCopy.Node
node := testClient.Node()
d, ok := node.Drivers["mock_driver"]
if !ok {
@ -104,7 +104,7 @@ func TestDriverManager_Fingerprint_Periodic(t *testing.T) {
// eventually, the mock_driver is marked as unhealthy
testutil.WaitForResult(func() (bool, error) {
node := testClient.configCopy.Node
node := testClient.Node()
d, ok := node.Drivers["mock_driver"]
if !ok {
@ -147,7 +147,7 @@ func TestDriverManager_NodeAttributes_Run(t *testing.T) {
// we should have mock_driver as well as raw_exec in node attributes
testutil.WaitForResult(func() (bool, error) {
node := testClient.configCopy.Node
node := testClient.Node()
// check mock driver
if node.Attributes["driver.mock_driver"] == "" {