aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/bwrap/config_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-01-19 18:38:13 +0900
committerOphestra <cat@gensokyo.uk>2025-01-19 18:38:13 +0900
commit2f705068658bf9c47a5fa829105111e46a7732a0 (patch)
tree4f75a66cb84cf5452c865afbdb9784adfded79b3 /helper/bwrap/config_test.go
parentcae567c1090ef12e9837f7dec4f43d030ec8f6b2 (diff)
helper/bwrap: move sync to helper state
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/bwrap/config_test.go')
-rw-r--r--helper/bwrap/config_test.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/helper/bwrap/config_test.go b/helper/bwrap/config_test.go
index 95749f09..7cf1b791 100644
--- a/helper/bwrap/config_test.go
+++ b/helper/bwrap/config_test.go
@@ -126,8 +126,7 @@ func TestConfig_Args(t *testing.T) {
name: "uid gid sync",
conf: (new(bwrap.Config)).
SetUID(1971).
- SetGID(100).
- SetSync(os.Stdin),
+ SetGID(100),
want: []string{
"--unshare-all", "--unshare-user",
"--disable-userns", "--assert-userns-disabled",
@@ -135,8 +134,6 @@ func TestConfig_Args(t *testing.T) {
"--uid", "1971",
// SetGID(100)
"--gid", "100",
- // SetSync(os.Stdin)
- // this is set when the process is created
},
},
{
@@ -246,10 +243,4 @@ func TestConfig_Args(t *testing.T) {
}()
(new(bwrap.Config)).Persist("/run", "", "")
})
-
- t.Run("sync file", func(t *testing.T) {
- if s := (new(bwrap.Config)).SetSync(os.Stdout).Sync(); s != os.Stdout {
- t.Errorf("Sync() = %v", s)
- }
- })
}