move all files to common/ to begin repo merge

This commit is contained in:
Ethan Buchman
2017-04-18 16:33:22 -04:00
parent 5aecd32554
commit 356657a37b
22 changed files with 0 additions and 0 deletions

24
common/service_test.go Normal file
View File

@@ -0,0 +1,24 @@
package common
import (
"testing"
)
func TestBaseServiceWait(t *testing.T) {
type TestService struct {
BaseService
}
ts := &TestService{}
ts.BaseService = *NewBaseService(nil, "TestService", ts)
ts.Start()
go func() {
ts.Stop()
}()
for i := 0; i < 10; i++ {
ts.Wait()
}
}