From eeb2deb7f608372ce20920a0dfd843162b2d191e Mon Sep 17 00:00:00 2001 From: ThinkChaos Date: Mon, 11 Aug 2025 18:48:39 -0400 Subject: [PATCH] courier: Don't hardcode path to `sleep` binary in the tests On NixOS, `/bin` is basically empty and this causes the courier tests (which invoke `/bin/sleep`) to fail. This patch fixes the tests by removing the hardcoded path. https://github.com/albertito/chasquid/pull/73 Amended-by: Alberto Bertogli Adjusted commit message. --- internal/courier/mda_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/courier/mda_test.go b/internal/courier/mda_test.go index 16f290e..9ecc46f 100644 --- a/internal/courier/mda_test.go +++ b/internal/courier/mda_test.go @@ -31,7 +31,7 @@ func TestMDA(t *testing.T) { } func TestMDATimeout(t *testing.T) { - p := MDA{"/bin/sleep", []string{"1"}, 100 * time.Millisecond} + p := MDA{"sleep", []string{"1"}, 100 * time.Millisecond} err, permanent := p.Deliver("from", "to@local", []byte("data")) if err != errTimeout {