liuxiran commented on a change in pull request #1648:
URL: https://github.com/apache/apisix-dashboard/pull/1648#discussion_r599491674



##########
File path: web/cypress/support/index.js
##########
@@ -17,6 +17,14 @@
 /* eslint-disable no-undef */
 import './commands';
 import '@cypress/code-coverage/support';
+const { SERVE_ENV = 'dev' } = Cypress.env();
+
+before(() => {
+  // reset etcd before test
+  if (SERVE_ENV === 'test') {
+    cy.exec('etcdctl del --prefix /', { failOnNonZeroExit: false });

Review comment:
       it seems that the prefix for apisix data stored in etcd is `/apisix`, so 
is it necessary to specify the prefix to `/apisix`insread of `/`?
   cc @nic-chen 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to