diff --git a/CHANGELOG.md b/CHANGELOG.md index 488cf61..6b6979c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog -## v0.0.1 [Unreleased] +## v0.0.2 [unreleased] +- 16/06/01 chore(test): add go routine to statistics test (SFR) + +## v0.0.1 [16/05/31] - 16/05/25 chore(test): fix tests to run from all OS (SFR/RLE) - 16/05/19 feat(all): finalize web server, tests and test script (SFR) feat(web): add web server, middleware and router and get implementation without range diff --git a/utils/statistics_test.go b/utils/statistics_test.go index a2d2dce..cee3498 100644 --- a/utils/statistics_test.go +++ b/utils/statistics_test.go @@ -14,7 +14,16 @@ const ( func TestStatistics(t *testing.T) { statistics := NewStatistics(2 * statPeriod) - statistics.PlusOne() + + // other go routine incrementing the counter + go func() { + statistics.PlusOne() + }() + + // other go routine incrementing the counter + go func() { + statistics.PlusOne() + }() time.Sleep(statPeriod)