add unit test for test broadcast (#1127)

* add unit test for test broadcast

* execute goimports

* add import peerstore

* refactor and check message equals expected

* remove not needed sleep

* add function to connect hosts to host

* refactor test for better reading

* refactor to only use one channel

* refactor subs to channel

* close channels instead of sending boolean value

* use goimports

* copy value to avoid race condition

* remove TODO comment

* fix issues with gometalinter

* run gazelle

* reduce sleep time

* add comments to goroutines
This commit is contained in:
Jonathan Gimeno
2019-01-18 02:43:22 +01:00
committed by Preston Van Loon
parent 2c3362e200
commit 685e299c45
3 changed files with 96 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ $ go test <file_you_are_working_on>
Changes that affect multiple files can be tested with ...
```
$ gometallinter && bazel test
$ gometalinter && bazel test
```
**10. Stage the file or files that you want to commit.**