Trace View: Removed part of flaky test (#64445)

Removed part of flaky test on Trace View
pull/64459/head
Andre Pereira 2 years ago committed by GitHub
parent 5a4ebe3a67
commit 4625958aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      public/app/features/explore/TraceView/components/TraceTimelineViewer/VirtualizedTraceView.test.tsx

@ -77,16 +77,7 @@ describe('<VirtualizedTraceViewImpl>', () => {
durationSpan0 = Math.floor(trace.spans[0].duration / 1000);
}
let durationSpan1 = trace.spans[1].duration;
if (trace.spans[1].duration >= 1_000_000) {
durationSpan1 = Math.floor(trace.spans[1].duration / 1000000);
} else if (trace.spans[1].duration >= 1000) {
durationSpan1 = Math.floor(trace.spans[1].duration / 1000);
}
expect(screen.getAllByText(durationSpan0, { exact: false })).toBeTruthy();
expect(screen.getAllByText(durationSpan1, { exact: false })).toBeTruthy();
});
it('renders without exploding', () => {

Loading…
Cancel
Save