aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lasseter <nathan.je.lasseter@googlemail.com>2011-01-28 22:15:26 +0000
committerNathan Lasseter <nathan.je.lasseter@googlemail.com>2011-01-28 22:15:26 +0000
commit69ae8b8039c341f1f86ebab9ec8ebbfc1be80134 (patch)
treeebd8965936228db810f21f81e1156868ccd3817a
parentf2c818015f711aaca7a7c1add7101c48effcfd54 (diff)
Added tests
-rw-r--r--TODO.textile1
-rw-r--r--erlbal_tests.erl10
2 files changed, 11 insertions, 0 deletions
diff --git a/TODO.textile b/TODO.textile
index 9707d08..bf95e49 100644
--- a/TODO.textile
+++ b/TODO.textile
@@ -3,6 +3,7 @@ h1. TODO
h2. Little changes:
* Add server state
+* stop_bal/1 should not kill servers
h2. BIG changes:
diff --git a/erlbal_tests.erl b/erlbal_tests.erl
new file mode 100644
index 0000000..df68706
--- /dev/null
+++ b/erlbal_tests.erl
@@ -0,0 +1,10 @@
+-module(erlbal_tests).
+-export([start/1]).
+
+start(simple) ->
+ Bal = erlbal:start_bal(),
+ erlbal:start_server(Bal, node(), fun(_) -> 7 end),
+ erlbal:start_server(Bal, node(), fun(_) -> 8 end),
+ 7 = erlbal:make_request(Bal, []),
+ 8 = erlbal:make_request(Bal, []),
+ erlbal:stop_bal(Bal).