From 0be108df2e8068e57a8bcf3c2e024ff054963b36 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 6 Jun 2022 13:29:09 +0200 Subject: [PATCH] nixos/tests/firefox: fix return type typing --- nixos/tests/firefox.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/tests/firefox.nix b/nixos/tests/firefox.nix index c773368a3e60..63ccc6efb5bb 100644 --- a/nixos/tests/firefox.nix +++ b/nixos/tests/firefox.nix @@ -54,7 +54,7 @@ import ./make-test-python.nix ({ pkgs, firefoxPackage, ... }: { @contextmanager - def audio_recording(machine: Machine) -> None: + def record_audio(machine: Machine): """ Perform actions while recording the machine audio output. @@ -64,7 +64,7 @@ import ./make-test-python.nix ({ pkgs, firefoxPackage, ... }: { machine.systemctl("stop audio-recorder") - def wait_for_sound(machine: Machine) -> None: + def wait_for_sound(machine: Machine): """ Wait until any sound has been emitted. """ @@ -94,7 +94,7 @@ import ./make-test-python.nix ({ pkgs, firefoxPackage, ... }: { machine.sleep(40) with subtest("Check whether Firefox can play sound"): - with audio_recording(machine): + with record_audio(machine): machine.succeed( "firefox file://${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/phone-incoming-call.oga >&2 &" )