mirror of
https://github.com/qwjyh/xdbm
synced 2024-11-22 06:40:12 +09:00
fixup! [fix] test: setup gitconfig at repo init
This commit is contained in:
parent
462c34cf96
commit
30ae6a6417
1 changed files with 6 additions and 5 deletions
11
tests/cli.rs
11
tests/cli.rs
|
@ -1,7 +1,8 @@
|
||||||
mod integrated_test {
|
mod integrated_test {
|
||||||
use std::{
|
use std::{
|
||||||
fs::{DirBuilder, File},
|
fs::{DirBuilder, File},
|
||||||
io::{BufWriter, Write}, path::Path,
|
io::{BufWriter, Write},
|
||||||
|
path::Path,
|
||||||
};
|
};
|
||||||
|
|
||||||
use anyhow::{Ok, Result};
|
use anyhow::{Ok, Result};
|
||||||
|
@ -17,10 +18,10 @@ mod integrated_test {
|
||||||
let mut buf = BufWriter::new(f);
|
let mut buf = BufWriter::new(f);
|
||||||
buf.write_all(
|
buf.write_all(
|
||||||
r#"
|
r#"
|
||||||
[user]
|
[user]
|
||||||
email = "test@example.com"
|
email = "test@example.com"
|
||||||
name = "testuser"
|
name = "testuser"
|
||||||
"#
|
"#
|
||||||
.as_bytes(),
|
.as_bytes(),
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue