Skip to content

Commit

Permalink
Clear progress when starting new test run
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Dec 6, 2024
1 parent ef7a889 commit 63304de
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions code/core/src/manager-api/modules/experimental_testmodule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const init: ModuleFn<SubAPI, SubState> = ({ store, fullAPI }) => {
clearTestProviderState(id) {
const update = {
cancelling: false,
running: true,
running: false,
failed: false,
crashed: false,
progress: undefined,
Expand All @@ -85,7 +85,13 @@ export const init: ModuleFn<SubAPI, SubState> = ({ store, fullAPI }) => {
runTestProvider(id, options) {
const index = store.getState().index;
invariant(index, 'The index is currently unavailable');
api.updateTestProviderState(id, { running: true, failed: false, crashed: false });

api.updateTestProviderState(id, {
running: true,
failed: false,
crashed: false,
progress: undefined,
});

const provider = store.getState().testProviders[id];

Expand Down

0 comments on commit 63304de

Please sign in to comment.