about summary refs log tree commit diff
path: root/pkgs/applications/networking/irc
diff options
context:
space:
mode:
authorDaniƫl de Kok <me@danieldk.eu>2020-07-19 20:37:07 +0200
committerGitHub <noreply@github.com>2020-07-19 20:37:07 +0200
commit2981e5d268aa18b941f60b6d8154603c734eb525 (patch)
tree65302229eceead367e35ab626699080211c04746 /pkgs/applications/networking/irc
parentebbc6ed121c0488a62fe04c1080177d1dfe4b20e (diff)
parent0c21a99a1a929c754bbd9f01e1d1c7bf5fa627e1 (diff)
downloadnixlib-2981e5d268aa18b941f60b6d8154603c734eb525.tar
nixlib-2981e5d268aa18b941f60b6d8154603c734eb525.tar.gz
nixlib-2981e5d268aa18b941f60b6d8154603c734eb525.tar.bz2
nixlib-2981e5d268aa18b941f60b6d8154603c734eb525.tar.lz
nixlib-2981e5d268aa18b941f60b6d8154603c734eb525.tar.xz
nixlib-2981e5d268aa18b941f60b6d8154603c734eb525.tar.zst
nixlib-2981e5d268aa18b941f60b6d8154603c734eb525.zip
Merge pull request #93419 from stigtsp/package/convos-4.23-fix-impure-test
convos: fix tests
Diffstat (limited to 'pkgs/applications/networking/irc')
-rw-r--r--pkgs/applications/networking/irc/convos/default.nix22
1 files changed, 16 insertions, 6 deletions
diff --git a/pkgs/applications/networking/irc/convos/default.nix b/pkgs/applications/networking/irc/convos/default.nix
index 8dd545494d17..d4b140815ccb 100644
--- a/pkgs/applications/networking/irc/convos/default.nix
+++ b/pkgs/applications/networking/irc/convos/default.nix
@@ -32,16 +32,26 @@ perlPackages.buildPerlPackage rec {
     patchShebangs script/convos
   '';
 
-  # A test fails since gethostbyaddr(127.0.0.1) fails to resolve to localhost in
-  # the sandbox, we replace the this out from a substitution expression
-  #
-  # Module::Install is a runtime dependency not covered by the tests, so we add
-  # a test for it.
-  #
   preCheck = ''
+    # A test fails since gethostbyaddr(127.0.0.1) fails to resolve to localhost in
+    # the sandbox, we replace the this out from a substitution expression
+    #
     substituteInPlace t/web-register-open-to-public.t \
       --replace '!127.0.0.1!' '!localhost!'
 
+    # Time-impurity in test, (fixed in master)
+    #
+    substituteInPlace t/web-load-user.t \
+      --replace '400' '410'
+
+    # Disk-space check fails on zfs, (fixed in master)
+    #
+    substituteInPlace t/web-admin.t \
+      --replace 'qr{/dev/}' 'qr{\w}'
+
+    # Module::Install is a runtime dependency not covered by the tests, so we add
+    # a test for it.
+    #
     echo "use Test::More tests => 1;require_ok('Module::Install')" \
       > t/00_nixpkgs_module_install.t
   '';