From c1ace2716950215ae55bcdfca0f444e54594c48f Mon Sep 17 00:00:00 2001 From: Liam Galvin Date: Tue, 21 Dec 2021 16:48:53 +0000 Subject: [PATCH] Fix failing test --- test/process_results_test.go | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/test/process_results_test.go b/test/process_results_test.go index 4e1dae52..f3b9ede3 100644 --- a/test/process_results_test.go +++ b/test/process_results_test.go @@ -14,9 +14,8 @@ func Test_process_results_with_no_results(t *testing.T) { client := FakeClient{} - results, policyFailures := processor.ProcessResults(client, nil) + results := processor.ProcessResults(client, nil) assert.Nil(t, results) - assert.Nil(t, policyFailures) } @@ -44,10 +43,9 @@ func Test_process_results_with_results_but_not_matching_policies(t *testing.T) { }, } - submitResults, summaries := processor.ProcessResults(client, results) + submitResults := processor.ProcessResults(client, results) assert.Len(t, submitResults, 1) - assert.Len(t, summaries, 1) } func Test_process_results_with_results_with_matching_policies(t *testing.T) { @@ -74,10 +72,9 @@ func Test_process_results_with_results_with_matching_policies(t *testing.T) { }, } - submitResults, summaries := processor.ProcessResults(client, results) + submitResults := processor.ProcessResults(client, results) assert.Len(t, submitResults, 1) - assert.NotNil(t, summaries) } func Test_process_results_with_results_with_no_matching_policies_severity_level(t *testing.T) { @@ -104,10 +101,9 @@ func Test_process_results_with_results_with_no_matching_policies_severity_level( }, } - submitResults, summaries := processor.ProcessResults(client, results) + submitResults := processor.ProcessResults(client, results) assert.Len(t, submitResults, 1) - assert.Len(t, summaries, 1) } func Test_process_results_with_results_with_matching_policies_severity_level(t *testing.T) { @@ -134,10 +130,9 @@ func Test_process_results_with_results_with_matching_policies_severity_level(t * }, } - submitResults, policyFailures := processor.ProcessResults(client, results) + submitResults := processor.ProcessResults(client, results) assert.Len(t, submitResults, 1) - assert.NotNil(t, policyFailures) } func Test_process_results_with_results_with_matching_policies_severity_level_greater_than_specified(t *testing.T) { @@ -164,8 +159,7 @@ func Test_process_results_with_results_with_matching_policies_severity_level_gre }, } - submitResults, policyFailures := processor.ProcessResults(client, results) + submitResults := processor.ProcessResults(client, results) assert.Len(t, submitResults, 1) - assert.NotNil(t, policyFailures) }