Skip to content

Commit

Permalink
Merge pull request #20 from startersclan/fix/tests-use-random-passwor…
Browse files Browse the repository at this point in the history
…d-to-reduce-server-rate-limiting-causing-failed-tests

Fix (tests): Use random password to reduce server rate limiting causing failed tests
  • Loading branch information
leojonathanoh authored May 30, 2021
2 parents a474749 + beb7fed commit ce5bc1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PSSourceQuery/public/GoldSourceRcon.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "GoldSourceRcon" -Tag 'Unit' {
}

It 'Fails when rcon password is wrong' {
$password = 'foo'
$password = "$( Get-Random -Minimum 1 -Maximum 1000000 )"
$command = 'status'
$ErrorActionPreference = 'Stop'
Mock Write-Verbose {}
Expand Down
2 changes: 1 addition & 1 deletion src/PSSourceQuery/public/SourceRcon.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Describe "SourceRcon" -Tag 'Unit' {
}

It 'Fails when rcon password is wrong' {
$password = 'foo'
$password = "$( Get-Random -Minimum 1 -Maximum 1000000 )"
$command = 'status'
$ErrorActionPreference = 'Stop'
Mock Write-Verbose {}
Expand Down

0 comments on commit ce5bc1c

Please sign in to comment.