Skip to content

Commit

Permalink
unit test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Nov 9, 2024
1 parent a1b8669 commit ee48a63
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions repository/tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ func TestEntityTag(t *testing.T) {
err = store.DeleteEntityTag(ct3.ID)
assert.NoError(t, err)

tag, err = store.FindEntityTagById(ct3.ID, time.Time{})
_, err = store.FindEntityTagById(ct3.ID, time.Time{})
assert.Error(t, err)
assert.Equal(t, tag, nil)
}

func TestCreateEdgeTag(t *testing.T) {
Expand All @@ -91,7 +90,7 @@ func TestCreateEdgeTag(t *testing.T) {

edge, err := store.Link(&types.Edge{
Relation: &relation.BasicDNSRelation{
Name: "owasp.org",
Name: "dns_record",
Header: relation.RRHeader{RRType: 5},
},
FromEntity: e1,
Expand Down Expand Up @@ -156,7 +155,6 @@ func TestCreateEdgeTag(t *testing.T) {
err = store.DeleteEdgeTag(ct3.ID)
assert.NoError(t, err)

tag, err = store.FindEdgeTagById(ct3.ID, time.Time{})
_, err = store.FindEdgeTagById(ct3.ID, time.Time{})
assert.Error(t, err)
assert.Equal(t, tag, nil)
}

0 comments on commit ee48a63

Please sign in to comment.