Skip to content

Add tests for jobs #1010

Closed
Closed

Description

We need tests for PowerShell, and then to fix the cmdlets.

Steps to reproduce

~ |-/ Start-Job -ScriptBlock { get-process }

Id     Name            PSJobTypeName   State         HasMoreData     Location             Command
--     ----            -------------   -----         -----------     --------             -------
1      Job1            BackgroundJob   Failed        False           localhost             get-process


~ |-/ Get-Job

Id     Name            PSJobTypeName   State         HasMoreData     Location             Command
--     ----            -------------   -----         -----------     --------             -------
1      Job1            BackgroundJob   Failed        False           localhost             get-process


~ |-/ Receive-Job Job1
An error has occurred which Windows PowerShell cannot handle. A remote session might have ended.
    + CategoryInfo          : OpenError: (localhost:String) [], PSRemotingDataStructureException
    + FullyQualifiedErrorId : PSSessionStateBroken

Expected behavior

Bruce Payette (@BrucePay) can you fill this in?

Actual behavior

See above.

Environment data

v0.4.0

Activity

  1. added
    Issue-Bug
    on May 19, 2016
  2. added
    WG-Quality-Test
    on May 19, 2016
  3. andyleejordan commented on May 19, 2016

    @andyleejordan
    MemberAuthor

    I added this as a known issue.

  4. andyleejordan commented on Jun 8, 2016

    @andyleejordan
    MemberAuthor
  5. modified the milestones: , Aug17 on Jul 28, 2016
  6. modified the milestones: , on Aug 3, 2016
  7. pcgeek86 commented on Aug 12, 2016

    @pcgeek86

    Also seeing this problem.

    • Ubuntu 16.04 LTS Xenial Xerus (Dockerized)
    • .NET Core 1.0.0-preview2
    • PowerShell 6.0.0-alpha
    PS /powershell> $PSVersionTable
    
    Name                           Value
    ----                           -----
    PSVersion                      6.0.0-alpha
    PSEdition                      Core
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
    BuildVersion                   3.0.0.0
    GitCommitId                    v6.0.0-alpha.8
    CLRVersion
    WSManStackVersion              3.0
    PSRemotingProtocolVersion      2.3
    SerializationVersion           1.1.0.1
    

    image

    Cheers,
    Trevor Sullivan
    Docker Captain
    Microsoft MVP: Cloud & Data Center Management
    https://trevorsullivan.net
    https://twitter.com/pcgeek86

  8. BrucePay commented on Mar 1, 2017

    @BrucePay
    Collaborator

    The problem with jobs not working was fixed in commit 2077e42 and tests were added with commit 9d1c998

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

Metadata

Metadata

Labels

Issue-BugWG-Quality-Test

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions