From f869ff95a12756de97827b4afd93763f9661f144 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 8 Jun 2026 14:19:11 +0900 Subject: all: apply modernisers Signed-off-by: Ophestra --- container/init_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'container/init_test.go') diff --git a/container/init_test.go b/container/init_test.go index 23d0a7b3..fe0e627a 100644 --- a/container/init_test.go +++ b/container/init_test.go @@ -95,7 +95,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -123,7 +123,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -152,7 +152,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -182,7 +182,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -213,7 +213,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -245,7 +245,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -279,7 +279,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -315,7 +315,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, -- cgit v1.3.1