Permalink
Browse files

clean up test script now that I'm not using callbacks

  • Loading branch information...
1 parent f782c3d commit 17b0cf87733ea3d8b8f9d194cf8df9d4560805ac Orion Henry committed Jun 10, 2011
Showing with 5 additions and 16 deletions.
  1. +0 −15 src/lockstep_test.erl
  2. +5 −1 test
View
@@ -1,15 +0,0 @@
-
--module(lockstep_test).
--author("Orion Henry <orion@heroku.com>").
-
--export([test/0 ]).
-
--record(ps, { id, ip, port }).
-
-test() ->
- inets:start(),
- {ok, Pid} = lockstep:start("http://0.0.0.0:4567/servers/", { id, ip, port }, "servers.dets"),
- Table = lockstep:ets(Pid),
- io:format("Have ets table: ~p~n",[Table]),
- io:format("Dump -> ~p~n",[ets:tab2list(Table)]),
- ok.
View
6 test
@@ -2,6 +2,10 @@
%%! -pa ebin -pa deps/mochiweb/ebin
main(_) ->
- lockstep_test:test(),
+ inets:start(),
+ {ok, Pid} = lockstep:start("http://0.0.0.0:4567/servers/", { id, ip, port }, "servers.dets"),
+ Table = lockstep:ets(Pid),
+ io:format("Have ets table: ~p~n",[Table]),
+ io:format("Dump -> ~p~n",[ets:tab2list(Table)]),
receive ok -> ok end.

0 comments on commit 17b0cf8

Please sign in to comment.