mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-10-18 19:10:37 +08:00
tests: add TEMPORARY workaround for incompatible heartwood change
This needs to be removed once the native CI adapter can depend on a newer heartwood, but for now, this allows tests to pass. Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -469,6 +469,18 @@ impl Rad {
|
||||
|
||||
fn auth(&self) -> Result<(), std::io::Error> {
|
||||
self._rad(&["auth", "--alias=test-node"], &self.home)?;
|
||||
|
||||
// FIXME: this is a temporary workaround for rad on the system
|
||||
// using a newer heartwood than what radicle-native-ci is
|
||||
// using, and there being a config entry that has changed.
|
||||
// This hack should be removed once the native CI adapter is
|
||||
// using a newer heartwood.
|
||||
let filename = self.home.join("config.json");
|
||||
let config = std::fs::read(&filename).unwrap();
|
||||
let config = String::from_utf8_lossy(&config);
|
||||
let config = config.replace(r#""relay": "auto","#, r#""relay": false,"#);
|
||||
std::fs::write(&filename, config.as_bytes()).unwrap();
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user