5 use Object::Remote::FromData;
7 my $conn1 = Reconnector->new::on('-');
8 my $conn2 = $conn1->connect;
10 isa_ok($conn1, 'Object::Remote::Proxy');
11 isa_ok($conn2, 'Object::Remote::Proxy');
14 my $conn1_pid = $conn1->pid;
15 my $conn2_pid = $conn2->pid;
17 ok($root_pid != $conn1_pid, "Root and conn1 are not the same interpreter instance");
18 ok($root_pid != $conn2_pid, "Root and conn2 are not the same interpreter instance");
19 ok($conn1_pid != $conn2_pid, "conn1 and conn2 are not the same interpreter instance");
21 ok($conn1->ping eq "pong", "Ping success on conn1");
22 ok($conn2->ping eq "pong", "Ping success on conn2");
33 return Reconnector->new::on('-');