Skip to content

Commit ce5bc1c

Browse files
Merge pull request #20 from startersclan/fix/tests-use-random-password-to-reduce-server-rate-limiting-causing-failed-tests
Fix (tests): Use random password to reduce server rate limiting causing failed tests
2 parents a474749 + beb7fed commit ce5bc1c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/PSSourceQuery/public/GoldSourceRcon.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Describe "GoldSourceRcon" -Tag 'Unit' {
5252
}
5353

5454
It 'Fails when rcon password is wrong' {
55-
$password = 'foo'
55+
$password = "$( Get-Random -Minimum 1 -Maximum 1000000 )"
5656
$command = 'status'
5757
$ErrorActionPreference = 'Stop'
5858
Mock Write-Verbose {}

src/PSSourceQuery/public/SourceRcon.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Describe "SourceRcon" -Tag 'Unit' {
5252
}
5353

5454
It 'Fails when rcon password is wrong' {
55-
$password = 'foo'
55+
$password = "$( Get-Random -Minimum 1 -Maximum 1000000 )"
5656
$command = 'status'
5757
$ErrorActionPreference = 'Stop'
5858
Mock Write-Verbose {}

0 commit comments

Comments
 (0)