Skip to content

Commit

Permalink
chore: fix compare test
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Sep 18, 2024
1 parent 110bf45 commit 9b6ea03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upstream/upstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func compareAgentEntities[T any](table string, upstreamDB *gorm.DB, agent agentW

Expect(len(upstream)).To(Equal(len(downstream)), fmt.Sprintf("expected %s to sync all items to upstream ", agent.name))

ignoreOpts = append(ignoreOpts, cmpopts.IgnoreUnexported(models.ConfigItem{}))
diff := cmp.Diff(upstream, downstream, ignoreOpts...)
Expect(diff).To(BeEmpty(), fmt.Sprintf("expected %s to sync correct items to upstream ", agent.name))
}

0 comments on commit 9b6ea03

Please sign in to comment.