Skip to content

Commit

Permalink
test: for tools/gone/*
Browse files Browse the repository at this point in the history
  • Loading branch information
dapeng committed May 25, 2024
1 parent ea3903f commit d2c5235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion goner/cmux/cmux.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ func (s *server) GetAddress() string {
func (s *server) Start(gone.Cemetery) error {
s.stopFlag = false
var err error
var mutex sync.Mutex
s.Go(func() {
err := s.cMux.Serve()
mutex.Lock()
err = s.cMux.Serve()
mutex.Unlock()
s.processStartError(err)
})
<-time.After(10 * time.Millisecond)
Expand Down
3 changes: 0 additions & 3 deletions tools/gone/priest/testdata/x/goner.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ func Priest(cemetery gone.Cemetery) error {
//todo
return nil
}

//test
//test

0 comments on commit d2c5235

Please sign in to comment.