func TestRunRunnerHandleLobbyModifyRequest(t *testing.T) {
	ctx := context.Background()
	ctx, cancelFunc := context.WithCancel(ctx)
	var wg sync.WaitGroup
	in := make(chan message.Message)
	inSM := make(chan message.Socket)
	log := new(logtest.Logger)
	r := Runner{
		log: log,
	}
	r.Run(ctx, &wg, in, inSM)
	var sm message.Socket
	inSM <- sm
	cancelFunc()
	wg.Wait()
	if log.Empty() {
		t.Errorf("wanted error to be logged when lobby sent socket runner invalid message")
	}
}
// TestRunRunnerHandleLobbyModifyRequest ensures a basic yet invalid lobby message passes through the runner correctly.
TestRunRunnerHandleLobbyModifyRequest ensures a basic yet invalid lobby message passes through the runner correctly.
// TestRunRunnerHandleLobbyModifyRequest ensures a basic yet invalid lobby message passes through the runner correctly .
func TestRunRunnerHandleLobbyModifyRequest(t *testing.T) {
	ctx := context.Background()
	ctx, cancelFunc := context.WithCancel(ctx)
	var wg sync.WaitGroup
	in := make(chan message.Message)
	inSM := make(chan message.Socket)
	log := new(logtest.Logger)
	r := Runner{
		log: log,
	}
	r.Run(ctx, &wg, in, inSM)
	var sm message.Socket
	inSM <- sm
	cancelFunc()
	wg.Wait()
	if log.Empty() {
		t.Errorf("wanted error to be logged when lobby sent socket runner invalid message")
	}
}
func TestRunRunnerHandleLobbyModifyRequest ( t * testing . T ) { ctx := context . Background ( ) ctx , cancelFunc := context . WithCancel ( ctx ) var wg sync . WaitGroup in := make ( chan message . Message ) inSM := make ( chan message . Socket ) log := new ( logtest . Logger ) r := Runner { log : log , } r . Run ( ctx , & wg , in , inSM ) var sm message . Socket inSM <- sm cancelFunc ( ) wg . Wait ( ) if log . Empty ( ) { t . Errorf ( " " ) } }
TestRunRunnerHandleLobbyModifyRequest ensures a basic yet invalid lobby message passes through the runner correctly.
TestRunRunnerHandleLobbyModifyRequest ensures a basic yet invalid lobby message passes through the runner correctly .