#lang racket (require rackunit net/url "../core.ss" "util.ss") (provide core-tests) (define betty (xml-rpc-server (string->url "http://betty.userland.com/RPC2"))) (define get-state-name (betty 'examples.getStateName)) (define core-tests (test-suite "All tests for core" (test-case "Round-trip call works" (with-timeout "Round-trip times out." RPC-TIMEOUT (check string=? (get-state-name 40) "South Carolina")) (with-timeout "Round-trip times out." RPC-TIMEOUT (check string=? (get-state-name 42) "Tennessee")))))