Skip to content

Get-GitHubEvent shouldn't use [int] for EventId #91

@HowardWolosky

Description

@HowardWolosky

While running UT's, we're seeing the following failure:

Describing Getting an event directly
    Context For getting an event directly

[-] Error occurred in Context block 0ms
        OverflowException: Value was either too large or too small for an Int32.
        PSInvalidCastException: Cannot convert value "2202340851" to type "System.Int32". Error: "Value was either too large or too small for an Int32."
        ArgumentTransformationMetadataException: Cannot convert value "2202340851" to type "System.Int32". Error: "Value was either too large or too small for an Int32."
        ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'EventID'. Cannot convert value "2202340851" to type "System.Int32". Error: "Value was either too large or too small for an Int32."
        at <ScriptBlock>, C:\projects\powershellforgithub\Tests\GitHubEvents.tests.ps1: line 144
        at DescribeImpl, C:\Program Files\WindowsPowerShell\Modules\Pester\4.7.2\Functions\Describe.ps1: line 199

Metadata

Metadata

Assignees

Labels

bugThis relates to a bug in the existing module.help wantedAnyone 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