File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ def test_retention_policies(self):
748
748
msg = "Two datapoints in interval in retention policy, got %s from query" % (
749
749
len (data_points )))
750
750
751
- def test_index_save_load (self ):
751
+ def test_index_save_load_failure (self ):
752
752
self .finder .index .clear ()
753
753
del self .finder
754
754
bad_index_path = 'bad_index'
@@ -784,12 +784,17 @@ def test_index_save_load(self):
784
784
os .unlink (bad_index_path )
785
785
except OSError :
786
786
pass
787
- try :
788
- os .unlink ('index' )
789
- except OSError :
790
- pass
791
- del finder
792
- del config ['search_index' ]
787
+
788
+ def test_index_save_load (self ):
789
+ config = { 'influxdb' : { 'host' : 'localhost' ,
790
+ 'port' : 8086 ,
791
+ 'memcache' : {'host' : 'localhost' ,},
792
+ 'user' : 'root' ,
793
+ 'pass' : 'root' ,
794
+ 'db' : self .db_name ,
795
+ },
796
+ 'statsd' : {'host' : 'localhost' },
797
+ }
793
798
finder = influxgraph .InfluxDBFinder (config )
794
799
finder .index_path = 'index'
795
800
finder .save_index ()
You can’t perform that action at this time.
0 commit comments