File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,13 @@ var _ = Describe("SourceManager", func() {
117
117
It ("should not add sources to non-existent collections" , func () {
118
118
err := sourceManager .AddSource ("non-existent" , "https://example.com" , DefaultUpdateInterval )
119
119
Expect (err ).ToNot (BeNil ())
120
- Expect (err .Error ()).To (ContainSubstring ("collection not found" ))
120
+ Expect (err .Error ()).To (ContainSubstring ("collection non-existent not found" ))
121
121
})
122
122
123
123
It ("should not remove sources from non-existent collections" , func () {
124
124
err := sourceManager .RemoveSource ("non-existent" , "https://example.com" )
125
125
Expect (err ).ToNot (BeNil ())
126
- Expect (err .Error ()).To (ContainSubstring ("collection not found" ))
126
+ Expect (err .Error ()).To (ContainSubstring ("collection non-existent not found" ))
127
127
})
128
128
})
129
129
@@ -169,6 +169,10 @@ var _ = Describe("SourceManager", func() {
169
169
})
170
170
171
171
Context ("URL Sanitization" , func () {
172
+ BeforeEach (func () {
173
+ sourceManager .RegisterCollection (TestCollection , kb )
174
+ })
175
+
172
176
It ("should sanitize URLs for filesystem safety" , func () {
173
177
// Add a source with a complex URL
174
178
complexURL := "https://example.com/path?query=value¶m=123#section"
You can’t perform that action at this time.
0 commit comments