백엔드 Docker 빌드 실패로 배포가 막히던 문제를 수정한다.
테스트 컴파일 오류(RsiThresholdCrossSignalTest)와 -DskipTests 한계를 해결해 StrategyConditionThresholdNormalizer가 실제 서버 이미지에 포함되도록 한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -132,11 +132,13 @@ class RsiThresholdCrossSignalTest {
|
||||
}
|
||||
|
||||
private static BarSeries buildOscillatingSeries(int count) {
|
||||
BaseBarSeriesBuilder builder = new BaseBarSeriesBuilder()
|
||||
Duration period = Duration.ofMinutes(3);
|
||||
BarSeries s = new BaseBarSeriesBuilder()
|
||||
.withName("test")
|
||||
.withBarBuilderFactory(new TimeBarBuilderFactory(Duration.ofMinutes(3)))
|
||||
.withNumFactory(DoubleNumFactory.getInstance());
|
||||
BarSeries s = builder.build();
|
||||
.withBarBuilderFactory(new TimeBarBuilderFactory())
|
||||
.withNumFactory(DoubleNumFactory.getInstance())
|
||||
.build();
|
||||
TimeBarBuilderFactory factory = new TimeBarBuilderFactory();
|
||||
Instant t = Instant.parse("2024-01-01T00:00:00Z");
|
||||
double price = 100;
|
||||
for (int i = 0; i < count; i++) {
|
||||
@@ -146,8 +148,13 @@ class RsiThresholdCrossSignalTest {
|
||||
double h = price + 1.5;
|
||||
double l = price - 1.5;
|
||||
double c = price;
|
||||
s.addBar(t, o, h, l, c, 1000);
|
||||
t = t.plus(Duration.ofMinutes(3));
|
||||
factory.createBarBuilder(s)
|
||||
.timePeriod(period)
|
||||
.endTime(t.plus(period))
|
||||
.openPrice(o).highPrice(h).lowPrice(l).closePrice(c)
|
||||
.volume(1000)
|
||||
.add();
|
||||
t = t.plus(period);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user