Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2168

Generate more random data in queue_test.go and template_test.go

    XMLWordPrintableJSON

Details

    Description

      quoted from https://github.com/apache/yunikorn-core/pull/696#issuecomment-1820206504

      Generate more random data in getResourceConf(), something more in the direction of rand.Intn(10000) instead of the seconds based setup.

      In queue_test.go and template_test.go both use getResourceConf() that use seconds based random data. And not only getResourceConf(), template_test.go#getProperties() use seconds based random data too. Use rand.Intn instead of using seconds based random data could generate more random data.

      Attachments

        Issue Links

          Activity

            People

              brandboat Kuan Po Tseng
              brandboat Kuan Po Tseng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: