moto 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edd2e049b0e7dba56343581d50e61e9a88026eb7
4
- data.tar.gz: 17e66c69f025ae75cf1b42c019024bd91812a715
3
+ metadata.gz: 7b6c96253d3998567fba32a47a76c3423f48f060
4
+ data.tar.gz: 44387d99086c820a7eb5fb205f5966020bfbf4ef
5
5
  SHA512:
6
- metadata.gz: 5e34d0f3514791a3ddc4ff69820bbb81ceb7d1f3308925cb66aabd34db31c76b0e54ac03ad410685a23674a0009e6abaf7705566c0838497544c1adde822efe0
7
- data.tar.gz: cc84b318230866656c81e91594dcce32e27d3538b375af3d5c0cb20d7d7303d86dd66c4cfda9afcce5e18ef5721457ce72d3b322fd3fb3b63228f022c7e5c976
6
+ metadata.gz: 103244c5e1a8634251f0962d4f48b029da7ad605efc739b18eeb38c989f536093cc050c4b160e03af908a3043fc8e6df4b99deae3974277129c823806e36d7d1
7
+ data.tar.gz: 6a7ccaa1e1e50ea90b6680220a965f15bb91320c6abbd6489540eaf3ac975df93de5b0bcf012e91dd7ff760df74c53810e20c5c4487e12190ca11901eaa5def6
@@ -9,7 +9,6 @@ module Moto
9
9
 
10
10
  REST_MAX_TRIES = 1
11
11
  REST_TIMEOUT = 15
12
- REST_RESULTS_AT_ONCE = 500
13
12
 
14
13
  def initialize(run_params)
15
14
  super
@@ -94,11 +93,13 @@ module Moto
94
93
  # we're just duplicating the same data
95
94
  @tests = @tests.values
96
95
 
96
+ start_time = Time.now.to_f
97
+
97
98
  while !@tests.empty?
98
99
  partial_run_data = {
99
100
  path: @mwui_path,
100
101
  tester_id: @assignee,
101
- tests: @tests.shift(REST_RESULTS_AT_ONCE)
102
+ tests: @tests.shift(config[:results_in_request])
102
103
  }.to_json
103
104
 
104
105
  response = try {
@@ -110,6 +111,9 @@ module Moto
110
111
  }
111
112
 
112
113
  response = JSON.parse(response, symbolize_names: true)
114
+
115
+ pp Time.now.to_f - start_time
116
+
113
117
  response
114
118
  end
115
119
 
@@ -1,3 +1,3 @@
1
1
  module Moto
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Wilczek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-01-31 00:00:00.000000000 Z
14
+ date: 2018-02-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport