We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af74414 commit 076a4e2Copy full SHA for 076a4e2
harness/loader.rb
@@ -1,4 +1,13 @@
1
# Use harness/harness.rb by default. You can change it with -I option.
2
# i.e. ruby -Iharness benchmarks/railsbench/benchmark.rb
3
-$LOAD_PATH << File.expand_path(__dir__)
4
-require "harness"
+retries = 0
+begin
5
+ require "harness"
6
+rescue LoadError => e
7
+ if retries == 0 && e.path == "harness"
8
+ retries += 1
9
+ $LOAD_PATH << File.expand_path(__dir__)
10
+ retry
11
+ end
12
+ raise
13
+end
0 commit comments