mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
22 lines
379 B
Nix
22 lines
379 B
Nix
|
# This test runs peerflix and checks if peerflix starts
|
||
|
|
||
|
import ./make-test.nix {
|
||
|
name = "peerflix";
|
||
|
|
||
|
nodes = {
|
||
|
peerflix =
|
||
|
{ config, pkgs, ... }:
|
||
|
{
|
||
|
services.peerflix.enable = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
startAll;
|
||
|
|
||
|
$peerflix->waitForUnit("peerflix.service");
|
||
|
$peerflix->waitUntilSucceeds("curl localhost:9000");
|
||
|
'';
|
||
|
|
||
|
}
|