pkg/mock/mockserver/mockserver.go
func (ms *MockServers) StopAt(idx int) {
	ms.mu.Lock()
	defer ms.mu.Unlock()

	if ms.Servers[idx].ln == nil {
		return
	}

	ms.Servers[idx].GrpcServer.Stop()
	ms.Servers[idx].GrpcServer = nil
	ms.Servers[idx].ln = nil
	ms.wg.Done()
}
func (ms *MockServers) StopAt(idx int) {
	ms.mu.Lock()
	defer ms.mu.Unlock()

	if ms.Servers[idx].ln == nil {
		return
	}

	ms.Servers[idx].GrpcServer.Stop()
	ms.Servers[idx].GrpcServer = nil
	ms.Servers[idx].ln = nil
	ms.wg.Done()
}
func ( ms * MockServers ) StopAt ( idx int ) { ms . mu . Lock ( ) defer ms . mu . Unlock ( ) if ms . Servers [ idx ] . ln == nil { return } ms . Servers [ idx ] . GrpcServer . Stop ( ) ms . Servers [ idx ] . GrpcServer = nil ms . Servers [ idx ] . ln = nil ms . wg . Done ( ) }
// StopAt stops mock server at given index.
StopAt stops mock server at given index .