mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-20 17:54:33 +00:00
testing 2
This commit is contained in:
parent
54f0bdee86
commit
52305ffa2b
1 changed files with 2 additions and 3 deletions
|
@ -37,7 +37,7 @@ pub fn create_default_config_file(path: &Path) -> ! {
|
|||
/// Generates the text of the default config file.
|
||||
fn generate_config_text() -> String {
|
||||
format!(
|
||||
include!("Cuprate.toml"),
|
||||
include_str!("Cuprate.toml"),
|
||||
cache = CUPRATE_CACHE_DIR.to_string_lossy(),
|
||||
txpool = CUPRATE_TXPOOL_DIR.to_string_lossy(),
|
||||
blockchain = CUPRATE_BLOCKCHAIN_DIR.to_string_lossy()
|
||||
|
@ -52,12 +52,11 @@ mod tests {
|
|||
fn generate_config_text_covers_all_values() {
|
||||
let text = generate_config_text();
|
||||
|
||||
#[cfg!(target_os = "windows")]
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
let full_config = Config::default();
|
||||
panic!(toml::to_string_pretty(&full_config).unwrap());
|
||||
}
|
||||
|
||||
|
||||
let table: toml::Table = toml::from_str(&text).unwrap();
|
||||
|
||||
|
|
Loading…
Reference in a new issue