Skip to content

Commit

Permalink
Fixed intermittent test (#1707)
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
jpkrohling authored and yurishkuro committed Aug 5, 2019
1 parent f04f5e5 commit 464acd0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugin/storage/es/spanstore/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,11 @@ func TestSpanReader_multiRead_followUp_query(t *testing.T) {
require.NoError(t, err)
sModel2, err := toDomain.SpanToDomain(&spanID2)
require.NoError(t, err)
assert.EqualValues(t, traces[0].Spans[0], sModel1)
assert.EqualValues(t, traces[1].Spans[0], sModel2)

for _, s := range []*model.Span{sModel1, sModel2} {
found := reflect.DeepEqual(traces[0].Spans[0], s) || reflect.DeepEqual(traces[1].Spans[0], s)
assert.True(t, found, "span was expected to be within one of the traces but was not: %v", s)
}
})
}

Expand Down

0 comments on commit 464acd0

Please sign in to comment.