nixpkgs/nixos/tests/nixos-test-driver/timeout.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
272 B
Nix
Raw Normal View History

{
name = "Test that sleep of 6 seconds fails a timeout of 5 seconds";
globalTimeout = 5;
nodes = {
machine = ({ pkgs, ... }: {
});
};
testScript = ''
start_all()
machine.wait_for_unit("multi-user.target")
machine.succeed("sleep 6")
'';
}