Skip to content

ThreadJob tests are failing intermittently #7260

Closed

Description

  Describing Job2 class API tests
+
    [-] Verifies StopJobAsync API 224ms
      Expected {Stopped}, but got {Failed}.
      328:         $job.JobStateInfo.State | Should -Be "Stopped"
      at Invoke-Assertion, /home/travis/build/PowerShell/PowerShell/src/powershell-unix/bin/Release/netcoreapp2.1/linux-x64/publish/Modules/Pester/4.2.0/Functions/Assertions/Should.ps1: line 206
      at <ScriptBlock>, /home/travis/build/PowerShell/PowerShell/test/powershell/Modules/ThreadJob/ThreadJob.Tests.ps1: line 328

cc Paul Higinbotham (@PaulHigin)

Activity

  1. TravisEz13 commented on Jul 10, 2018

    @TravisEz13
    MemberAuthor

    This occurred in Appveyor

        [-] ThreadJob Runspaces should be cleaned up after job removal 
          Expected {16}, but got {10}.
          272:             (Get-Runspace).Count | Should -Be ($rsStartCount + 4)
          at Invoke-Assertion, C:\projects\powershell\src\powershell-win-core\bin\Release\netcoreapp2.1\win7-x64\publish\Modules\Pester\4.2.0\Functions\Assertions\Should.ps1: line 206
          at <ScriptBlock>, C:\projects\powershell\test\powershell\Modules\ThreadJob\ThreadJob.Tests.ps1: line 272
    ++
    

    https://ci.appveyor.com/project/PowerShell/powershell/build/v6.1.0-preview.10131/job/qml741ums6umqjbh

  2. PaulHigin commented on Jul 11, 2018

    @PaulHigin
    Contributor

    I have worked with James Truher (@JamesWTruher) to address this. The changes are in his pending PR (#7240).
    Jim, if your PR is being held up lets pull the threadjob test fix into a separate PR to get tests succeeding again.
    Travis Plunk (@TravisEz13) you can safely ignore these test failures for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-Fixed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions