Skip to content

Investigate and fix instability in tests #264

Closed
@HowardWolosky

Description

@HowardWolosky

Issue Details

Lately, the CI build has been failing inconsistently against a couple different tests. The goal here is to identify the problem and get these tests passing consistently so that we can rely on the results coming out of the CI builds again.

Steps to reproduce the issue

Tests that seem to be regularly, but inconsistently, failing (to be updated further as past test results are further analyzed):

Context 'Remove Repo project via pipeline' {
$project = $repo | New-GitHubProject -ProjectName $defaultRepoProject -Description $defaultRepoProjectDesc
$project | Remove-GitHubProject -Force
It 'Project should be removed' {
{$project | Get-GitHubProject} | Should -Throw
}

"Expected an exception, to be thrown, but no exception was thrown."
at <ScriptBlock>, D:\a\1\s\Tests\GitHubProjects.tests.ps1: line 622
622:                 {$project | Get-GitHubProject} | Should -Throw

Requested Assignment

I'm just reporting this problem, but don't want to fix it.

Operating System

OsName               : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture       : 64-bit
WindowsVersion       : 1909
WindowsBuildLabEx    : 18362.1.amd64fre.19h1_release.190318-1202
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.18362.752
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.752
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module Version

Running: 0.14.0
Installed:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis relates to a bug in the existing module.help wantedAnyone in the community is welcome to do this worktestsA change related to the Pester tests for the module.up for grabsAnyone in the community is welcome to do this work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions