Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Using Test::TAP::Model and a global object

by skx (Parson)
on Oct 16, 2007 at 10:33 UTC ( [id://645147]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Using Test::TAP::Model and a global object
in thread Using Test::TAP::Model and a global object

Ahh I guess I wasn't being helpful then.

I guess a potential fall-back plan would be to created a local singleton module to encapsulate your connection.

Then each test could do something like:

my $con = Singleton::Connection->instance();

and this way only the first connection would connect - the latter calls would return the established object.

Still just a hack instead of the real ability you want, but it might help.

Steve
--

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://645147]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-26 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found