Skip to content

Commit

Permalink
Change usage of ValidateTestReturn
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Korczynski <[email protected]>
  • Loading branch information
AdamKorcz committed Feb 6, 2024
1 parent 1e2a6dd commit 67ee6c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion checks/evaluation/pinned_dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func Test_PinningDependencies(t *testing.T) {
t.Parallel()
dl := scut.TestDetailLogger{}
got := PinningDependencies(tt.name, tt.findings, &dl)
scut.ValidateTestReturn(t, tt.name, &tt.expected, &actual, &dl)
scut.ValidateTestReturn(t, tt.name, &tt.result, &got, &dl)
})
}
}
Expand Down
5 changes: 1 addition & 4 deletions checks/pinned_dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ func TestPinningDependencies(t *testing.T) {
}

res := PinningDependencies(c)

if !scut.ValidateTestReturn(t, tt.name, &tt.want, &res, &dl) {
t.Errorf("test failed: log message not present: %+v on %+v", tt.want, res)
}
scut.ValidateTestReturn(t, tt.name, &tt.want, &res, &dl)
})
}
}

0 comments on commit 67ee6c8

Please sign in to comment.