From e821470d0d1b99a683bf3891ae9b28bd52fec2df Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 17 Aug 2023 19:15:21 +0100 Subject: [PATCH] fix: go test. --- cmd/aa-log/main_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/aa-log/main_test.go b/cmd/aa-log/main_test.go index 513d3f1e..cdd5f1b6 100644 --- a/cmd/aa-log/main_test.go +++ b/cmd/aa-log/main_test.go @@ -14,7 +14,7 @@ func Test_app(t *testing.T) { logger string path string profile string - anon bool + rules bool wantErr bool }{ { @@ -22,7 +22,7 @@ func Test_app(t *testing.T) { logger: "auditd", path: "../../tests/audit.log", profile: "", - anon: true, + rules: false, wantErr: false, }, { @@ -30,7 +30,7 @@ func Test_app(t *testing.T) { logger: "systemd", path: "../../tests/systemd.log", profile: "", - anon: false, + rules: false, wantErr: false, }, { @@ -38,7 +38,7 @@ func Test_app(t *testing.T) { logger: "auditd", path: "../../tests/log", profile: "", - anon: false, + rules: false, wantErr: true, }, { @@ -46,13 +46,13 @@ func Test_app(t *testing.T) { logger: "raw", path: "../../tests/audit.log", profile: "", - anon: false, + rules: false, wantErr: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - if err := aaLog(tt.logger, tt.path, tt.profile, tt.anon); (err != nil) != tt.wantErr { + if err := aaLog(tt.logger, tt.path, tt.profile); (err != nil) != tt.wantErr { t.Errorf("aaLog() error = %v, wantErr %v", err, tt.wantErr) } })