Skip to content

Commit 4599bae

Browse files
committed
test: ignore tests that use utc locally and only run them in ci
1 parent 36d5f0b commit 4599bae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/cli.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ fn test_help_command_passes() -> TestResult<()> {
7070
}
7171

7272
#[test]
73+
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
7374
fn test_begin_snapshot_passes() -> TestResult<()> {
7475
let dir_str = temp_dir_with("activities.pace.toml")?;
7576

@@ -105,6 +106,7 @@ fn test_now_no_activities_snapshot_passes() -> TestResult<()> {
105106
}
106107

107108
#[test]
109+
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
108110
fn test_now_with_active_activity_snapshot_passes() -> TestResult<()> {
109111
let dir_str = temp_dir_with("activities.pace.toml")?;
110112

@@ -122,6 +124,7 @@ fn test_now_with_active_activity_snapshot_passes() -> TestResult<()> {
122124
}
123125

124126
#[test]
127+
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
125128
fn test_end_with_active_activity_snapshot_passes() -> TestResult<()> {
126129
let dir_str = temp_dir_with("activities.pace.toml")?;
127130

@@ -139,6 +142,7 @@ fn test_end_with_active_activity_snapshot_passes() -> TestResult<()> {
139142
}
140143

141144
#[test]
145+
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
142146
fn test_hold_with_active_activity_snapshot_passes() -> TestResult<()> {
143147
let dir_str = temp_dir_with("activities.pace.toml")?;
144148

@@ -156,6 +160,7 @@ fn test_hold_with_active_activity_snapshot_passes() -> TestResult<()> {
156160
}
157161

158162
#[test]
163+
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
159164
fn test_resume_with_held_activity_snapshot_passes() -> TestResult<()> {
160165
let dir_str = temp_dir_with("activities.pace.toml")?;
161166

@@ -183,6 +188,7 @@ fn test_resume_with_held_activity_snapshot_passes() -> TestResult<()> {
183188
}
184189

185190
#[test]
191+
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
186192
fn test_adjust_activity_snapshot_passes() -> TestResult<()> {
187193
let dir_str = temp_dir_with("activities.pace.toml")?;
188194

0 commit comments

Comments
 (0)