Skip to content

Commit

Permalink
refactor: 增加自定义setting设置支持
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Oct 8, 2024
1 parent 85b2dfa commit c297a9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/org/jetlinks/reactor/ql/ReactorQLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,8 @@ void testCustomFunction() {
ReactorQL.builder()
.sql("select upper('name') name from t1")
.feature(new SingleParameterFunctionMapFeature("upper", v -> String.valueOf(v).toUpperCase()))
.setting("concurrency", 10)
.settings(Collections.singletonMap("concurrency",0))
.build()
.start(Flux.just(1))
.as(StepVerifier::create)
Expand Down Expand Up @@ -2069,7 +2071,7 @@ void testErrorMatch() {
.builder()
.sql("select 1 from dual where left>right")
.build()
.start(Flux.range(0,100_0000).map(ignore->data))
.start(Flux.range(0, 100_0000).map(ignore -> data))
.doOnNext(System.out::println)
.as(StepVerifier::create)
.expectNextCount(0)
Expand Down

0 comments on commit c297a9b

Please sign in to comment.