Skip to content

Commit c237797

Browse files
committed
Fix tests
1 parent e88eeae commit c237797

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

watch/src/main.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1+
#[cfg(unix)]
12
use std::process;
23

4+
#[cfg(unix)]
35
mod block_packing;
6+
#[cfg(unix)]
47
mod block_rewards;
8+
#[cfg(unix)]
59
mod blockprint;
10+
#[cfg(unix)]
611
mod cli;
12+
#[cfg(unix)]
713
mod config;
14+
#[cfg(unix)]
815
mod database;
16+
#[cfg(unix)]
917
mod logger;
18+
#[cfg(unix)]
1019
mod server;
20+
#[cfg(unix)]
1121
mod suboptimal_attestations;
22+
#[cfg(unix)]
1223
mod updater;
1324

1425
#[cfg(unix)]

watch/src/server/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ pub fn start_server(
8989
"/v1/validators/:validator/latest_proposal",
9090
get(handler::get_validator_latest_proposal),
9191
)
92-
//.route("/v1/validators/:validator/proposals", get(handler::get_validator_proposals))
9392
.route("/v1/clients", get(handler::get_client_breakdown))
9493
.route(
9594
"/v1/clients/percentages",

watch/tests/tests.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ pub fn random_dbname() -> String {
590590
format!("test_{}", s)
591591
}
592592

593+
#[cfg(unix)]
593594
#[tokio::test]
594595
async fn short_chain() {
595596
let builder = TesterBuilder::new().await;
@@ -617,6 +618,7 @@ async fn short_chain() {
617618
.await;
618619
}
619620

621+
#[cfg(unix)]
620622
#[tokio::test]
621623
async fn short_chain_sync_starts_on_skip_slot() {
622624
let builder = TesterBuilder::new().await;
@@ -654,6 +656,7 @@ async fn short_chain_sync_starts_on_skip_slot() {
654656
.await;
655657
}
656658

659+
#[cfg(unix)]
657660
#[tokio::test]
658661
async fn short_chain_with_skip_slot() {
659662
let builder = TesterBuilder::new().await;
@@ -698,6 +701,7 @@ async fn short_chain_with_skip_slot() {
698701
.await;
699702
}
700703

704+
#[cfg(unix)]
701705
#[tokio::test]
702706
async fn short_chain_with_reorg() {
703707
let builder = TesterBuilder::new().await;
@@ -744,6 +748,7 @@ async fn short_chain_with_reorg() {
744748
.await;
745749
}
746750

751+
#[cfg(unix)]
747752
#[tokio::test]
748753
async fn chain_grows() {
749754
let builder = TesterBuilder::new().await;
@@ -807,6 +812,7 @@ async fn chain_grows() {
807812
.await;
808813
}
809814

815+
#[cfg(unix)]
810816
#[tokio::test]
811817
async fn chain_grows_with_metadata() {
812818
let builder = TesterBuilder::new().await;
@@ -913,6 +919,7 @@ async fn chain_grows_with_metadata() {
913919
.await;
914920
}
915921

922+
#[cfg(unix)]
916923
#[tokio::test]
917924
async fn chain_grows_with_metadata_and_multiple_skip_slots() {
918925
let builder = TesterBuilder::new().await;
@@ -1026,6 +1033,7 @@ async fn chain_grows_with_metadata_and_multiple_skip_slots() {
10261033
.await;
10271034
}
10281035

1036+
#[cfg(unix)]
10291037
#[tokio::test]
10301038
async fn chain_grows_to_second_epoch() {
10311039
let builder = TesterBuilder::new().await;
@@ -1113,6 +1121,7 @@ async fn chain_grows_to_second_epoch() {
11131121
.await;
11141122
}
11151123

1124+
#[cfg(unix)]
11161125
#[tokio::test]
11171126
async fn large_chain() {
11181127
let builder = TesterBuilder::new().await;

0 commit comments

Comments
 (0)