You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Kuan-Po Tseng (Jira)" <ji...@apache.org> on 2023/11/21 04:40:00 UTC

[jira] [Created] (YUNIKORN-2168) Generate more random data in queue_test.go and template_test.go

Kuan-Po Tseng created YUNIKORN-2168:
---------------------------------------

             Summary: Generate more random data in queue_test.go and template_test.go
                 Key: YUNIKORN-2168
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2168
             Project: Apache YuniKorn
          Issue Type: Improvement
          Components: core - scheduler, test - unit
            Reporter: Kuan-Po Tseng
            Assignee: Kuan-Po Tseng


quoted from [https://github.com/apache/yunikorn-core/pull/696#issuecomment-1820206504]
{quote}Generate more random data in {{{}getResourceConf(){}}}, something more in the direction of {{rand.Intn(10000)}} instead of the seconds based setup.
{quote}
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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org