Changeset 15052 for trunk/FACT++


Ignore:
Timestamp:
03/13/13 12:47:22 (12 years ago)
Author:
tbretz
Message:
Increased timeout for check to 3s and added an error message. Removed the obsolete wait for service names.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/CheckFTU.js

    r14763 r15052  
    33var service_ftm = new Subscription("FTM_CONTROL/FTU_LIST");
    44
    5 // Make sure that we receive a 'Yes, we are connected' event
     5// Make sure that we receive a 'Yes, we are connected and names are available' event
    66service_ftm.get(5000);
    7 
    8 // Wait for the format string to be available
    9 // FIXME: Timeout
    10 while (!dim.send("FTM_CONTROL"))
    11     v8.sleep();
    127
    138// Check for all FTUs to be connected when the next event arrives
     
    3631
    3732// Wait for 1 second for the answer
    38 var timeout = new Thread(1000, function(){ if (service_ftm.isOpen) throw new Error(""); });
     33var timeout = new Thread(3000, function(){ if (service_ftm.isOpen) throw new Error("Could not check that all FTUs are ok within 3s."); });
    3934while (service_ftm.isOpen)
    4035    v8.sleep();
Note: See TracChangeset for help on using the changeset viewer.