mirror of
https://github.com/prymitive/karma
synced 2026-05-13 03:56:59 +00:00
Use the correct variable in tests
'es.JiraURL == es.JiraURL' is always true, it should compare es with gs. Fix it and reformat for readability
This commit is contained in:
@@ -870,7 +870,10 @@ func testAlert(version string, t *testing.T, expectedAlert, gotAlert models.Aler
|
||||
for _, es := range expectedAM.Silences {
|
||||
foundSilence := false
|
||||
for _, gs := range gotAM.Silences {
|
||||
if es.Comment == gs.Comment && es.CreatedBy == gs.CreatedBy && es.JiraID == gs.JiraID && es.JiraURL == es.JiraURL {
|
||||
if es.Comment == gs.Comment &&
|
||||
es.CreatedBy == gs.CreatedBy &&
|
||||
es.JiraID == gs.JiraID &&
|
||||
es.JiraURL == gs.JiraURL {
|
||||
foundSilence = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user