Skip to content

Commit

Permalink
Chronos: the ut test_init_doppelganer() in simulator is fixed (#5418)
Browse files Browse the repository at this point in the history
Considering the environment variable FTP_URI is only available in Jenkins, the unit test test_init_doppelganer() in simulator can be directly skipped when not in Jenkins.
  • Loading branch information
plusbang authored Aug 17, 2022
1 parent 61c7187 commit 19632d4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ def test_output_value(self):
[Output(type_=OutputType.CONTINUOUS, dim=2, normalization=None)]

def test_init_doppelganer(self):
df = get_train_data()
# The environment variable FTP_URI is only available in Jenkins,
# thus this unit test can be directly skipped when not in Jenkins
try:
df = get_train_data()
except:
return

feature_outputs = [Output(type_=OutputType.CONTINUOUS,
dim=1,
normalization=Normalization.MINUSONE_ONE)]
Expand Down

0 comments on commit 19632d4

Please sign in to comment.