Skip to content

Commit f24b29f

Browse files
committed
try force
1 parent 5fd6c67 commit f24b29f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/browserstack/local.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module BrowserStack
66
class Local
77
attr_reader :pid
88

9-
def initialize(key = nil)
9+
def initialize(key = ENV["BROWSERSTACK_ACCESS_KEY"])
1010
@key = key
1111
@logfile = File.join(Dir.pwd, "local.log")
1212
end

test/browserstack-local-test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ def setup
88
end
99

1010
def test_check_pid
11-
@bs_local.start({'key' => ENV["BROWSERSTACK_ACCESS_KEY"]})
11+
@bs_local.start({'force' => true})
1212
refute_nil @bs_local.pid, 0
1313
end
1414

1515
def test_is_running
16-
@bs_local.start({'key' => ENV["BROWSERSTACK_ACCESS_KEY"]})
16+
@bs_local.start({'force' => true})
1717
assert_equal true, @bs_local.isRunning
1818
end
1919

2020
def test_multiple_binary
21-
@bs_local.start({'key' => ENV["BROWSERSTACK_ACCESS_KEY"]})
21+
@bs_local.start({'force' => true})
2222
bs_local_2 = BrowserStack::Local.new
2323
assert_raises BrowserStack::LocalException do
24-
bs_local_2.start({'key' => ENV["BROWSERSTACK_ACCESS_KEY"]})
24+
bs_local_2.start({'force' => true})
2525
end
2626
end
2727

0 commit comments

Comments
 (0)