aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/seccomp/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/seccomp/export_test.go')
-rw-r--r--sandbox/seccomp/export_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/seccomp/export_test.go b/sandbox/seccomp/export_test.go
index 5b23106f..761d0f85 100644
--- a/sandbox/seccomp/export_test.go
+++ b/sandbox/seccomp/export_test.go
@@ -93,7 +93,7 @@ func TestExport(t *testing.T) {
t.Errorf("Close: error = %v", err)
return
}
- if got := digest.Sum(nil); slices.Compare(got, tc.want) != 0 {
+ if got := digest.Sum(nil); !slices.Equal(got, tc.want) {
t.Fatalf("Export() hash = %x, want %x",
got, tc.want)
return