aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/direct_test.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-07 22:51:08 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-07 22:51:08 +0900
commit3c5185d770859acc853cb09940d8345fa30b7f76 (patch)
tree58cccd5179ced6a73320b1c593c7e95b5d028d03 /helper/direct_test.go
parent55a5b6f242e7ca5f257a085c722f6cc9fa055b04 (diff)
helper: move test sample data out of direct
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'helper/direct_test.go')
-rw-r--r--helper/direct_test.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/helper/direct_test.go b/helper/direct_test.go
index 12a7b526..fc583b64 100644
--- a/helper/direct_test.go
+++ b/helper/direct_test.go
@@ -4,7 +4,6 @@ import (
"errors"
"io"
"os"
- "strconv"
"strings"
"testing"
"time"
@@ -12,28 +11,6 @@ import (
"git.ophivana.moe/cat/fortify/helper"
)
-var (
- want = []string{
- "unix:path=/run/dbus/system_bus_socket",
- "/tmp/fortify.1971/12622d846cc3fe7b4c10359d01f0eb47/system_bus_socket",
- "--filter",
- "--talk=org.bluez",
- "--talk=org.freedesktop.Avahi",
- "--talk=org.freedesktop.UPower",
- }
-
- wantPayload = strings.Join(want, "\x00") + "\x00"
- argsWt = helper.MustNewCheckedArgs(want)
-)
-
-func argF(argsFD int, _ int) []string {
- return []string{"--args", strconv.Itoa(argsFD)}
-}
-
-func argFStatus(argsFD int, statFD int) []string {
- return []string{"--args", strconv.Itoa(argsFD), "--fd", strconv.Itoa(statFD)}
-}
-
func TestHelper_StartNotify_Close_Wait(t *testing.T) {
helper.InternalReplaceExecCommand(t)