Skip to content

Commit 1851026

Browse files
fix(data-pipeline): add a wait for the agent info to be updated
1 parent 5fdc335 commit 1851026

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • data-pipeline/src/trace_exporter

data-pipeline/src/trace_exporter/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,11 @@ mod tests {
12731273
})
12741274
}
12751275

1276+
// Wait for the agent_info state to be updated once the /info endpoint has been polled
1277+
exporter.runtime.block_on(async {
1278+
sleep(Duration::from_millis(300)).await;
1279+
});
1280+
12761281
let result = exporter.send(data.as_ref(), 1);
12771282
// Error received because server is returning an empty body.
12781283
assert!(result.is_err());

0 commit comments

Comments
 (0)