text: // This returns a numerical value that is 99.99% unique in a multi-process test runner where the state/DB
  // is clean-up at least once a day
  
  function getShortUnique() {
    const now = new Date();
    // We add this weak random just to cover the case where two test started at the very same millisecond
    const aBitOfMoreSalt = Math.ceil(Math.random() * 999);
    return `${process.pid}${aBitOfMoreSalt}${now.getMilliseconds()}`;
  }
  
  function getSensorEvent(overrides) {
    const defaultSensorEvent = {
      category: `Home equipment ${getShortUnique()}`,
      temperature: 20,
      reason: `Thermostat-failed-${getShortUnique()}`, // This must be unique
      color: 'Green',
      weight: 80,
      status: 'active',
      notificationCategory: 'default',
    };
    const result = Object.assign(defaultSensorEvent, overrides);
  
    return result;
  }
  
  module.exports.getShortUnique = getShortUnique;
  module.exports.getSensorEvent = getSensorEvent;
  