Browse Source

sleep time for data migration to finish estimated

ignazio 3 years ago
parent
commit
c63e2ab7df

+ 4 - 2
tests/network-tests/run-migration-tests.sh

@@ -285,8 +285,10 @@ function main {
     echo "***** STARTING NODE WITH FORKED STATE *****"
     export JOYSTREAM_NODE_TAG=$RUNTIME_TAG
     CONTAINER_ID=$(start_node)
-    
-    sleep 240
+
+    # 120 sec needed to load the chainspec + 480 sec in order to perform migration, given that
+    # a new block is produced every 6 sec
+    sleep 600
     
     # verify that the number of outstanding channels & videos == 0
     # if ( $POST_MIGRATION_CLI_ASSERTIONS ); then

+ 1 - 2
tests/network-tests/src/misc/postMigrationAssertionsFlow.ts

@@ -15,6 +15,7 @@ export default async function postMigrationAssertions({ api }: FlowProps): Promi
     assert(video_migration.current_id.toNumber() == video_migration.final_id.toNumber())
 
     debug('Check all working groups have been correctly created')
+
     const wg_alpha = await api.query.operationsWorkingGroupAlpha.activeWorkerCount();
     const wg_beta = await api.query.operationsWorkingGroupBeta.activeWorkerCount();
     const wg_gamma = await api.query.operationsWorkingGroupGamma.activeWorkerCount();
@@ -41,11 +42,9 @@ export default async function postMigrationAssertions({ api }: FlowProps): Promi
 
     const num_channels = await api.getNumberOfOutstandingChannels()
     const num_videos = await api.getNumberOfOutstandingVideos()
-    const num_categories = await api.getNumberOfOutstandingVideoCategories()
 
     assert(num_channels === 0);
     assert(num_videos === 0);
-    assert(num_categories === 0);
 
     debug('Done')
 }