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

Flaky test TestPublisherSendsEvent

    XMLWordPrintableJSON

Details

    Description

      Unit tests failed in our internal build environment:

      2023-11-14T02:11:54.954Z INFO core.rmproxy plugins/plugins.go:46 register scheduler plugin: ResourceManagerCallback
      2023-11-14T02:11:54.955Z INFO core.rmproxy plugins/plugins.go:50 register scheduler plugin: StateDumpPlugin
      2023/11/14  --- FAIL: TestPublisherSendsEvent (0.01s)  event_publisher_test.go:137: EventRecord should not be nil!
      

      Root cause is potentially scheduling/timing, the 2ms sleep time is not enough. Replace it with polling.

      Attachments

        Issue Links

          Activity

            People

              pbacsko Peter Bacsko
              pbacsko Peter Bacsko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: