mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: update timeout error UX (#10274)
This commit is contained in:
@@ -40,7 +40,21 @@ describe('chart reducers', () => {
|
||||
it('should update endtime on timeout', () => {
|
||||
const newState = chartReducer(
|
||||
charts,
|
||||
actions.chartUpdateTimeout('timeout', 60, chartKey),
|
||||
actions.chartUpdateFailed(
|
||||
{
|
||||
statusText: 'timeout',
|
||||
error: 'Request timed out',
|
||||
errors: [
|
||||
{
|
||||
error_type: 'FRONTEND_TIMEOUT_ERROR',
|
||||
extra: { timeout: 1 },
|
||||
level: 'error',
|
||||
message: 'Request timed out',
|
||||
},
|
||||
],
|
||||
},
|
||||
chartKey,
|
||||
),
|
||||
);
|
||||
expect(newState[chartKey].chartUpdateEndTime).toBeGreaterThan(0);
|
||||
expect(newState[chartKey].chartStatus).toEqual('failed');
|
||||
|
||||
Reference in New Issue
Block a user