1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-16 14:27:01 +00:00

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 <albertito@blitiri.com.ar>
  Adjusted commit message.
This commit is contained in:
ThinkChaos
2025-08-11 18:48:39 -04:00
committed by Alberto Bertogli
parent 6b66731850
commit eeb2deb7f6

View File

@@ -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 {