Forráskód Böngészése

content-test.sh: Fix "account already exists" case

Leszek Wiesner 3 éve
szülő
commit
60ef307fe6
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      cli/scripts/content-test.sh

+ 3 - 0
cli/scripts/content-test.sh

@@ -11,6 +11,7 @@ export AUTO_CONFIRM=true
 # Init content lead
 GROUP=contentWorkingGroup yarn workspace api-scripts initialize-lead
 # Add integration tests lead key (in case the script is executed after ./start.sh)
+yarn joystream-cli account:forget --name "Test content lead key" || true
 yarn joystream-cli account:import --suri //testing//worker//Content//0 --name "Test content lead key" --password "" || true
 # Test create/update/remove category
 yarn joystream-cli content:createVideoCategory -i ./examples/content/CreateCategory.json
@@ -62,3 +63,5 @@ yarn joystream-cli content:deleteVideo -v 3 -f
 yarn joystream-cli content:deleteChannel -c 1 -f
 yarn joystream-cli content:deleteChannel -c 2 -f
 yarn joystream-cli content:deleteChannel -c 3 -f
+# Forget test content lead account
+yarn joystream-cli account:forget --name "Test content lead key"