nixosTests.peerflix: Port tests to python

gstqt5
Christian Kampka 2019-12-15 18:50:50 +01:00
parent a20683acbe
commit d58814ac5a
No known key found for this signature in database
GPG Key ID: B88E140DB4FE1AA5
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# This test runs peerflix and checks if peerflix starts
import ./make-test.nix ({ pkgs, ...} : {
import ./make-test-python.nix ({ pkgs, ...} : {
name = "peerflix";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ offline ];
@ -15,9 +15,9 @@ import ./make-test.nix ({ pkgs, ...} : {
};
testScript = ''
startAll;
start_all()
$peerflix->waitForUnit("peerflix.service");
$peerflix->waitUntilSucceeds("curl localhost:9000");
peerflix.wait_for_unit("peerflix.service")
peerflix.wait_until_succeeds("curl localhost:9000")
'';
})