ngalerting: represent nil/empty labels the same (#32652)

was getting duplicates of [] and null before
This commit is contained in:
Kyle Brandt
2021-04-02 13:49:45 -04:00
committed by GitHub
parent 5e9afa7ebf
commit 948da25c13
3 changed files with 3 additions and 4 deletions
@@ -54,6 +54,7 @@ func TestAlertInstanceOperations(t *testing.T) {
DefinitionOrgID: alertDefinition2.OrgID,
DefinitionUID: alertDefinition2.UID,
State: models.InstanceStateNormal,
Labels: models.InstanceLabels{},
}
err := dbstore.SaveAlertInstance(saveCmd)
require.NoError(t, err)