Skip to content

Commit 4e7170f

Browse files
committed
fix to use different name from others
1 parent 9272a91 commit 4e7170f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/plugin/test_storage.rb

+7-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ class BareStorage < Fluent::Plugin::Storage
99
Fluent::Plugin.register_storage('bare', self)
1010
end
1111

12-
class ExampleStorage < Fluent::Plugin::Storage
12+
class BasicStorage < Fluent::Plugin::Storage
1313
Fluent::Plugin.register_storage('example', self)
1414

1515
attr_reader :data, :saved
1616

17+
def initialize
18+
super
19+
@data = @saved = nil
20+
end
1721
def load
1822
@data = {}
1923
end
@@ -107,15 +111,15 @@ class StorageTest < Test::Unit::TestCase
107111
setup do
108112
plugin = DummyPlugin.new
109113
plugin.configure(config_element('ROOT', '', {'@id' => '1'}))
110-
@s = ExampleStorage.new
114+
@s = BasicStorage.new
111115
@s.configure(config_element())
112116
@s.owner = plugin
113117
end
114118

115119
test 'load/save works well as plugin internal state operations' do
116120
plugin = DummyPlugin.new
117121
plugin.configure(config_element('ROOT', '', {'@id' => '0'}))
118-
s = ExampleStorage.new
122+
s = BasicStorage.new
119123
s.owner = plugin
120124

121125
assert_nothing_raised{ s.load }

0 commit comments

Comments
 (0)