Commit 05418be
test: fix NacosPropertySourceRefreshListener test setup
The tests were adding plain MapPropertySource to propertySources, but the
production code checks for NacosPropertySource type. This caused the refresh
logic to never execute, resulting in test failures where values weren't updated.
Fixed by:
1. Adding NacosPropertySource wrapper to propertySources instead of inner MapPropertySource
2. Specifying "yml" suffix in NacosPropertySource constructor to match test data
Signed-off-by: sywu14 <wushiyuanwork@outlook.com>1 parent 3a7da96 commit 05418be
1 file changed
Lines changed: 4 additions & 4 deletions
File tree
- spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/test/java/com.alibaba.cloud.nacos/refresh
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments