Skip to content

Commit 438243f

Browse files
committed
fix(tests): Protect the test_log_rpc from concurrent tests
The `nodelet` and the `plugin` were using an absolute path, which would get clobbered by concurrent tests, which can then lead to spurious fails. Using relative paths makes this much more stable.
1 parent 846f38f commit 438243f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/gl-plugin/src/node/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ impl Node for PluginNodeServer {
230230
// log entries are produced while we're streaming the
231231
// backlog out, but do we care?
232232
use tokio::io::{AsyncBufReadExt, BufReader};
233-
let file = tokio::fs::File::open("/tmp/log").await?;
233+
// The nodelet uses its CWD, but CLN creates a network
234+
// subdirectory
235+
let file = tokio::fs::File::open("../log").await?;
234236
let mut file = BufReader::new(file).lines();
235237

236238
tokio::spawn(async move {

0 commit comments

Comments
 (0)