File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use std::fs;
5
5
use toml;
6
6
7
7
lazy_static ! {
8
- pub static ref DEVELOPMENT_CONFIG : Config =
8
+ static ref DEVELOPMENT_CONFIG : Config =
9
9
toml:: from_str( include_str!( "../../docs/config/dev.toml" ) )
10
10
. expect( "Failed to parse dev.toml config file" ) ;
11
11
static ref PRODUCTION_CONFIG : Config =
Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ mod test {
51
51
52
52
use adapter:: DummyAdapter ;
53
53
use primitives:: adapter:: AdapterOptions ;
54
+ use primitives:: config:: configuration;
54
55
use primitives:: util:: tests:: prep_db:: { DUMMY_CHANNEL , IDS } ;
55
- use primitives:: { config :: DEVELOPMENT_CONFIG , BalancesMap , Channel } ;
56
+ use primitives:: { BalancesMap , Channel } ;
56
57
57
58
fn setup_iface ( channel : & Channel ) -> SentryApi < DummyAdapter > {
58
59
let adapter_options = AdapterOptions {
@@ -62,7 +63,7 @@ mod test {
62
63
keystore_file : None ,
63
64
keystore_pwd : None ,
64
65
} ;
65
- let config = DEVELOPMENT_CONFIG . clone ( ) ;
66
+ let config = configuration ( "development" , None ) . expect ( "Dev config should be available" ) ;
66
67
let dummy_adapter = DummyAdapter :: init ( adapter_options, & config) ;
67
68
68
69
SentryApi :: new ( dummy_adapter, & channel, & config, false ) . expect ( "should succeed" )
You can’t perform that action at this time.
0 commit comments