aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/daemon_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mbf/daemon_test.go')
-rw-r--r--cmd/mbf/daemon_test.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/cmd/mbf/daemon_test.go b/cmd/mbf/daemon_test.go
index cf67059a..2ec2e76a 100644
--- a/cmd/mbf/daemon_test.go
+++ b/cmd/mbf/daemon_test.go
@@ -3,6 +3,7 @@ package main
import (
"bytes"
"context"
+ "encoding/binary"
"errors"
"io"
"log"
@@ -17,7 +18,7 @@ import (
"hakurei.app/message"
)
-func TestCureFromIR(t *testing.T) {
+func TestNoReply(t *testing.T) {
t.Parallel()
if !daemonDeadline().IsZero() {
t.Fatal("daemonDeadline did not return the zero value")
@@ -45,7 +46,11 @@ func TestCureFromIR(t *testing.T) {
}
}()
- if _err := c.EncodeAll(
+ if _, _err := client.Write(
+ binary.LittleEndian.AppendUint64(nil, remoteNoReply),
+ ); _err != nil {
+ panic(_err)
+ } else if _err = c.EncodeAll(
client,
pkg.NewFile("check", []byte{0}),
); _err != nil {
@@ -105,7 +110,7 @@ func TestDaemon(t *testing.T) {
}()
var p *check.Absolute
- p, err = cureRemote(ctx, &addr, pkg.NewFile("check", []byte{0}))
+ p, err = cureRemote(ctx, &addr, pkg.NewFile("check", []byte{0}), 0)
if err != nil {
t.Fatalf("cureRemote: error = %v", err)
}