git.iko.soy/typeable/nixpkgs
on master help sign in
Remove tomcat vm test timing issues

(cherry picked from commit 090f1f0722b79cbba5f0abccac61496398789762) Signed-off-by: Domen Kožar <domen@dev.si>

commit8ea8659f2962b955d6bb56bf5d2e76d7249a94a3 authorReno Reckling <exi@wthack.de> dateTue 13 Sep 2016, 22:56 (10 years ago) parent77b9abf
1 file changed+2−3
nixos/tests/tomcat.nix+2−3
nixos/tests/tomcat.nix+2−3
@@ -23,9 +23,8 @@ import ./make-test.nix ({ pkgs, ...} : {
2323 startAll;
2424
2525 $server->waitForUnit("tomcat");
26− $server->sleep(30); # Dirty, but it takes a while before Tomcat handles to requests properly
2726 $client->waitForUnit("network.target");
28− $client->succeed("curl --fail http://server/examples/servlets/servlet/HelloWorldExample");
29− $client->succeed("curl --fail http://server/examples/jsp/jsp2/simpletag/hello.jsp");
27+ $client->waitUntilSucceeds("curl --fail http://server/examples/servlets/servlet/HelloWorldExample");
28+ $client->waitUntilSucceeds("curl --fail http://server/examples/jsp/jsp2/simpletag/hello.jsp");
3029 '';
3130})