Clean up start-up and shut-down.

Change-Id: Idff4bbb0a15a9f879bfbb3da5b1025179cab5e2c
This commit is contained in:
Bjoern Rabenstein 2014-10-10 14:19:02 +02:00
parent 4447708c9f
commit b3ed9aa7a2
12 changed files with 161 additions and 146 deletions

View file

@ -48,7 +48,7 @@ func NewTestStorage(t testing.TB) (Storage, test.Closer) {
t.Fatalf("Error creating storage: %s", err)
}
storageStarted := make(chan bool)
storageStarted := make(chan struct{})
go storage.Serve(storageStarted)
<-storageStarted