tunemygc 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tunemygc/syncer.rb +4 -3
- data/lib/tunemygc/version.rb +1 -1
- data/test/test_syncer.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47b92c000755e3877eb12edc9e91aa68701daf78
|
4
|
+
data.tar.gz: a1b4ccf96daf83ce91fe1b93b2c02af6939c3adb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad17f4cba66b98508183430a4421ce53c5787209ee1e23e8618bdffa1b54faf9e64c12daf9e985c8537cc2866b2056110616b60c807ed3c64641724b33ac9262
|
7
|
+
data.tar.gz: 07d913179a6bb3bc98c77f8b0b12d276e8a8dbc97b5c5e3a47fb205a68b23e3d914c42548d3204d24f601c00dcee9cf5a2056ecce01dc30db3dd73965a58bb46
|
data/lib/tunemygc/syncer.rb
CHANGED
@@ -35,14 +35,15 @@ module TuneMyGc
|
|
35
35
|
sleep(retries + 1)
|
36
36
|
else
|
37
37
|
process_config_callback(response)
|
38
|
-
|
38
|
+
return true
|
39
39
|
end
|
40
40
|
else
|
41
|
-
|
41
|
+
return false
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
TuneMyGc.log "Sync failed after retries ..."
|
46
|
+
false
|
46
47
|
ensure
|
47
48
|
payload.clear
|
48
49
|
end
|
data/lib/tunemygc/version.rb
CHANGED
data/test/test_syncer.rb
CHANGED
@@ -46,7 +46,7 @@ class TestSyncer < TuneMyGcTestCase
|
|
46
46
|
|
47
47
|
out, err = capture_io do
|
48
48
|
TuneMyGc.logger = Logger.new($stdout)
|
49
|
-
|
49
|
+
assert_equal false, syncer.sync(snapshots)
|
50
50
|
end
|
51
51
|
assert_match(/Ruby version/, out)
|
52
52
|
assert_match(/Rails version/, out)
|
@@ -65,7 +65,7 @@ class TestSyncer < TuneMyGcTestCase
|
|
65
65
|
|
66
66
|
out, err = capture_io do
|
67
67
|
TuneMyGc.logger = Logger.new($stdout)
|
68
|
-
|
68
|
+
assert_equal false, syncer.sync(snapshots)
|
69
69
|
end
|
70
70
|
assert_match(/The GC is already tuned by environment variables/, out)
|
71
71
|
assert_match(/Failed to sync 1 snapshots/, out)
|
@@ -82,7 +82,7 @@ class TestSyncer < TuneMyGcTestCase
|
|
82
82
|
|
83
83
|
out, err = capture_io do
|
84
84
|
TuneMyGc.logger = Logger.new($stdout)
|
85
|
-
|
85
|
+
assert_equal false, syncer.sync(snapshots)
|
86
86
|
end
|
87
87
|
assert_match(/Invalid payload/, out)
|
88
88
|
assert_match(/snapshot timestamp/, out)
|
@@ -100,7 +100,7 @@ class TestSyncer < TuneMyGcTestCase
|
|
100
100
|
|
101
101
|
out, err = capture_io do
|
102
102
|
TuneMyGc.logger = Logger.new($stdout)
|
103
|
-
|
103
|
+
assert_equal false, syncer.sync(snapshots)
|
104
104
|
end
|
105
105
|
assert_match(/Invalid application token/, out)
|
106
106
|
end
|
@@ -116,7 +116,7 @@ class TestSyncer < TuneMyGcTestCase
|
|
116
116
|
|
117
117
|
out, err = capture_io do
|
118
118
|
TuneMyGc.logger = Logger.new($stdout)
|
119
|
-
|
119
|
+
assert_equal false, syncer.sync(snapshots)
|
120
120
|
end
|
121
121
|
assert_match(/Agent version 2 required/, out)
|
122
122
|
assert_match(/Failed to sync 1 snapshots/, out)
|
@@ -132,7 +132,7 @@ class TestSyncer < TuneMyGcTestCase
|
|
132
132
|
|
133
133
|
out, err = capture_io do
|
134
134
|
TuneMyGc.logger = Logger.new($stdout)
|
135
|
-
|
135
|
+
assert_equal false, syncer.sync(snapshots)
|
136
136
|
end
|
137
137
|
assert_match(/Failed to sync 1 snapshots/, out)
|
138
138
|
assert_match(/dang/, out)
|