File tree 2 files changed +19
-5
lines changed
2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change
1
+ jobs :
2
+ - job : build
3
+ pool :
4
+ vmImage : ' vs2017-win2016'
5
+ steps :
6
+ - task : PowerShell@2
7
+ inputs :
8
+ targetType : inline
9
+ script : |
10
+ ruby -v
11
+ gem install bundler -v 1.17.3
12
+ bundle install
13
+ mkdir rspec
14
+ bundle exec rspec --exclude-pattern "spec/integrations/*,spec/redis_*" --format progress --format RspecJunitFormatter -o ./rspec/rspec.xml spec
Original file line number Diff line number Diff line change 74
74
segments:
75
75
seg1:
76
76
key: seg1
77
- include: ["user1"]
77
+ include: ["user1"]
78
78
EOF
79
79
}
80
80
87
87
end
88
88
89
89
after do
90
- FileUtils . remove_dir ( @tmp_dir )
90
+ FileUtils . rm_rf ( @tmp_dir )
91
91
end
92
92
93
93
def make_temp_file ( content )
@@ -198,10 +198,10 @@ def test_auto_reload(options)
198
198
event = ds . start
199
199
expect ( event . set? ) . to eq ( true )
200
200
expect ( @store . all ( LaunchDarkly ::SEGMENTS ) . keys ) . to eq ( [ ] )
201
-
201
+
202
202
sleep ( 1 )
203
203
IO . write ( file , all_properties_json )
204
-
204
+
205
205
max_time = 10
206
206
ok = wait_for_condition ( 10 ) { @store . all ( LaunchDarkly ::SEGMENTS ) . keys == all_segment_keys }
207
207
expect ( ok ) . to eq ( true ) , "Waited #{ max_time } s after modifying file and it did not reload"
@@ -243,7 +243,7 @@ def test_auto_reload(options)
243
243
client . close
244
244
end
245
245
end
246
-
246
+
247
247
def wait_for_condition ( max_time )
248
248
deadline = Time . now + max_time
249
249
while Time . now < deadline
You can’t perform that action at this time.
0 commit comments