Skip to content

Commit

Permalink
copy probe
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoet committed Jul 15, 2019
1 parent 8420f2a commit 9dd69e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class NewRelicShadowResultReporterSpec extends FlatSpec with Matchers with Mocki
"NewRelicShadowResultReporter" should "match complex case class structure" in {
val reporter = createResultReporter
val probe = TestCaseClass("asdfasdf", Seq(TestInnerCaseClass(MyValueObject("qqq"), 88), TestInnerCaseClass(MyValueObject("ppp"), 99)))
val result = reporter.resultsMatch(Right(probe), Right(probe))
// copy probe to make sure not just testing reference equality
val result = reporter.resultsMatch(Right(probe), Right(probe.copy()))
withClue(result.mismatchReasons) {
result.matches should be (true)
}
Expand Down

0 comments on commit 9dd69e4

Please sign in to comment.