diff options
author | Chris Stockton <cstockton@godaddy.com> | 2017-05-17 13:12:24 -0700 |
---|---|---|
committer | Chris Stockton <cstockton@godaddy.com> | 2017-05-17 13:12:24 -0700 |
commit | 02b4ee0d904945c6cebb0a2d1c894d29c2a292ab (patch) | |
tree | 463cc9f031a22a6565b6cbeed9eebd2eab41b0cd /config | |
parent | c28f127f5fad42d252e5775ef7d7968e7c2b75c7 (diff) |
server/fsm_test.go: fix race condition during tests
Add sync.Mutex to guard access to MockConnection to prevent tests
ran with -race from failing. In addition change the calls to the fmt
package to use t.Log show they only show with the -v flag to prevent
unwanted noise between test runs. It has the added benefit of
providing a file and line number as well.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions