Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Oct 24, 2024
1 parent 1c55402 commit 03e9b5f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bundle/resources/lookup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,13 @@ func TestLookup_Nominal(t *testing.T) {

// Lookup by key only.
out, err := Lookup(b, "foo")
require.NoError(t, err)
if assert.NotNil(t, out) {
if assert.NoError(t, err) {
assert.Equal(t, "Foo job", out.Resource.GetName())
}

// Lookup by type and key.
out, err = Lookup(b, "jobs.foo")
require.NoError(t, err)
if assert.NotNil(t, out) {
if assert.NoError(t, err) {
assert.Equal(t, "Foo job", out.Resource.GetName())
}
}

0 comments on commit 03e9b5f

Please sign in to comment.