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

Removed part of flaky test on Trace View
This commit is contained in:
Andre Pereira 2023-03-08 17:41:03 +00:00 committed by GitHub
parent 5a4ebe3a67
commit 4625958aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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