Fix wait query regression

shamefully introduced by myself in d61b659345385386ba8d3fff1158fe0923ae7ab8. 
(but there was no test case covering the missed thing :p)

and while at it : simplified and clarified handling of multiple components in a single request. (mostly DRY).


I agree ;)




----- Mail original -----
De: "Sébastien Coavoux" <notifications@github.com>
À: "shinken-monitoring/mod-livestatus" <mod-livestatus@noreply.github.com>
Cc: "Grégory Starck" <gregory.starck@savoirfairelinux.com>
Envoyé: Lundi 22 Décembre 2014 04:23:41
Objet: Re: [mod-livestatus] Fix wait query regression (#43)



In test/test_wait_query.py : > +import random
> +from random import randint
> +import socket
> +import threading
> +import time
> +
> +from shinken.objects.module import Module
> +from shinken_modules import TestConfig
> +from shinken_test import time_hacker, unittest
> +from test_livestatus import LiveStatusTest
> +
> +from livestatus.livestatus_wait_query import LiveStatusWaitQuery
> +from livestatus.livestatus_query import LiveStatusQuery
> +
> +
> +class LiveStatusTestBugs(LiveStatusTest): 

Not a helpful class name :) 

— 
Reply to this email directly or view it on GitHub . 

-- 
Grégory Starck

Ingénieur logiciel
Savoir-faire Linux
Email: gregory.starck@savoirfairelinux.com
Tél: +1 514 276 5468 Poste #176