Skip to content

Commit

Permalink
fix to use different name from others
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Mar 24, 2016
1 parent 9c8be3b commit 7335c13
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/plugin/test_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ class BareStorage < Fluent::Plugin::Storage
Fluent::Plugin.register_storage('bare', self)
end

class ExampleStorage < Fluent::Plugin::Storage
class BasicStorage < Fluent::Plugin::Storage
Fluent::Plugin.register_storage('example', self)

attr_reader :data, :saved

def initialize
super
@data = @saved = nil
end
def load
@data = {}
end
Expand Down Expand Up @@ -107,15 +111,15 @@ class StorageTest < Test::Unit::TestCase
setup do
plugin = DummyPlugin.new
plugin.configure(config_element('ROOT', '', {'@id' => '1'}))
@s = ExampleStorage.new
@s = BasicStorage.new
@s.configure(config_element())
@s.owner = plugin
end

test 'load/save works well as plugin internal state operations' do
plugin = DummyPlugin.new
plugin.configure(config_element('ROOT', '', {'@id' => '0'}))
s = ExampleStorage.new
s = BasicStorage.new
s.owner = plugin

assert_nothing_raised{ s.load }
Expand Down

0 comments on commit 7335c13

Please sign in to comment.