mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-23 20:25:56 +00:00
Keep connected metadata controls independent of tag ordering
Canonical ordering is already exercised by the repeated map and quiet rebuild controls. Let the connected replace/add/remove/clear/restore and tenant-isolation test independently establish that real metadata still propagates on both parent and repaired adapters, rather than making this healthy control fail solely for the known parent ordering defect. Change-source: pulse-maintainer
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"fmt"
|
||||
"maps"
|
||||
"reflect"
|
||||
"slices"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -273,9 +272,6 @@ func TestLabelTagsConnectedChangesAndClearsRemainVisible(t *testing.T) {
|
||||
t.Fatal("receiver replay differs from the full current projection (including labels/tags clears)")
|
||||
}
|
||||
for _, resource := range projection.state().Resources {
|
||||
if !slices.IsSorted(resource.Tags) {
|
||||
t.Fatalf("changed tags are not sorted for %s: %v", resource.ID, resource.Tags)
|
||||
}
|
||||
if name == "clear" && (len(resource.Tags) != 0 || len(resource.Labels) != 0) {
|
||||
t.Fatalf("cleared metadata remained on %s", resource.ID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user