-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(starknet_integration_tests): add dummy_recorder binary (#3166)
- Loading branch information
1 parent
be32bfa
commit b43ae77
Showing
4 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
crates/starknet_integration_tests/src/bin/dummy_recorder.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use std::net::SocketAddr; | ||
|
||
use starknet_integration_tests::utils::spawn_success_recorder; | ||
use starknet_sequencer_infra::trace_util::configure_tracing; | ||
use tracing::info; | ||
|
||
const RECORDER_PORT: u16 = 8080; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
configure_tracing().await; | ||
|
||
let socket_address = SocketAddr::from(([0, 0, 0, 0], RECORDER_PORT)); | ||
let join_handle = spawn_success_recorder(socket_address); | ||
info!("Spawned the dummy success Recorder successfully!"); | ||
|
||
join_handle.await.expect("The dummy success Recorder has panicked!!! :("); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters