From: Joel VanderWerf Date: 2005-08-14T07:04:31+09:00 Subject: Re: Unit testing servers Luke Kanies wrote: > Hi all, > > I've got an xmlrpc server and client that I can't figure out how to test. > > The methods I've tried so far, with their results are: > > 1) Server and client in separate threads. I get a deadlock, no matter what I > try to do. What about trying a simple TCP client/server in this configuration, maybe starting with the sample/{tsvr,clnt}.rb in the ruby distribution modified to run in two threads. I'm using single-process multithreaded tests for TCP client/server code and it works well. It's easier to work in one process with the state of the whole system before, during, and after tests. But I don't know what else might be going on with xmlrpc. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407