Skip to content

Commit

Permalink
chore: fix resource selector test
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Apr 24, 2024
1 parent 5f74052 commit 5259add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions types/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ func (p Properties) Find(name string) *Property {
return nil
}

func (p Property) GetValue() interface{} {
func (p Property) GetValue() any {
if p.Text != "" {
return p.Text
}
if p.Value != nil {
return p.Value
return *p.Value
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion types/resource_selector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func TestResourceSelector_Matches(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if tt.selectable != nil && !tt.resourceSelector.Matches(tt.selectable) {
t.Errorf("expected to match")
t.Errorf("failed[%s] expected to match", tt.name)
}

if tt.unselectable != nil && tt.resourceSelector.Matches(tt.unselectable) {
Expand Down

0 comments on commit 5259add

Please sign in to comment.