Skip to content

Commit eeb2deb

Browse files
ThinkChaosalbertito
authored andcommitted
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. #73 Amended-by: Alberto Bertogli <[email protected]> Adjusted commit message.
1 parent 6b66731 commit eeb2deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/courier/mda_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestMDA(t *testing.T) {
3131
}
3232

3333
func TestMDATimeout(t *testing.T) {
34-
p := MDA{"/bin/sleep", []string{"1"}, 100 * time.Millisecond}
34+
p := MDA{"sleep", []string{"1"}, 100 * time.Millisecond}
3535

3636
err, permanent := p.Deliver("from", "to@local", []byte("data"))
3737
if err != errTimeout {

0 commit comments

Comments
 (0)