Skip to content

Commit

Permalink
fix: fix issue regarding browserstack instance
Browse files Browse the repository at this point in the history
That causing runner couldn't sent session status back to
browserstack

Signed-off-by: Fery Wardiyanto <[email protected]>
  • Loading branch information
feryardiant committed Mar 19, 2024
1 parent b9048dd commit 8ac419c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/WithBrowserStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
*/
trait WithBrowserStack
{
/**
* Instance of BrowserStack.
*/
private static ?BrowserStack $browserStack = null;

/**
* The BrowserStackLocal process instance.
*/
Expand Down Expand Up @@ -50,11 +45,7 @@ protected function tearDownWithBrowserStack(): void
*/
final protected function browserStack(): BrowserStack
{
if (self::$browserStack) {
return self::$browserStack;
}

return self::$browserStack = new BrowserStack(static::$browsers);
return new BrowserStack(static::$browsers);
}

/**
Expand Down

0 comments on commit 8ac419c

Please sign in to comment.