Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

use working remote test site, skip if test site isnt reachable #24

Merged
merged 1 commit into from

2 participants

@FROGGS

No description provided.

@cosimo cosimo merged commit e7ba7b8 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/custom-headers-and-content.t
View
6 t/custom-headers-and-content.t
@@ -3,12 +3,12 @@ use Test;
use LWP::Simple;
-my $host = 'http://www.software-path.com/was-cgi/json_rpc_server_test.cgi';
+my $host = 'http://froggs.de/cgi-bin/test/test.cgi';
my %headers = ( 'Content-Type' => 'application/json' );
my $content = '{"method":"echo","params":["Hello from Perl6"],"id":1}';
+my $html = LWP::Simple.post($host, %headers, $content);
-my $html = LWP::Simple.post($host, %headers, $content);
-
+skip("Unable to connect to test site '$host'", 1) unless $html;
ok(
$html.match('Hello from Perl6'),
'call to JSON-RPC service using headers and content params'
Something went wrong with that request. Please try again.