about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/nixos-test-driver/timeout.nix
blob: 29bd85d2498ea7d3ab3645abe1bac33f3d7c7a2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  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")
  '';
}