Skip to content

Commit

Permalink
re-initialise store in redirect test in DeleteSubnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ndv99 committed Mar 25, 2024
1 parent ed78955 commit e6498f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ it("redirects on save", async () => {
});
const state = getRootState();
state.vlan.items[0].dhcp_on = false;
const store = configureStore()(state);
let store = configureStore()(state);
const { rerender } = render(
<Provider store={store}>
<Router history={history}>
Expand All @@ -198,6 +198,7 @@ it("redirects on save", async () => {
);

state.subnet.saved = true;
store = configureStore()(state);

rerender(
<Provider store={store}>
Expand Down

0 comments on commit e6498f7

Please sign in to comment.