Skip to content

Commit 60b95c1

Browse files
committed
Fixups
1 parent 81c2cb5 commit 60b95c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/e2e/source_manager_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ var _ = Describe("SourceManager", func() {
117117
It("should not add sources to non-existent collections", func() {
118118
err := sourceManager.AddSource("non-existent", "https://example.com", DefaultUpdateInterval)
119119
Expect(err).ToNot(BeNil())
120-
Expect(err.Error()).To(ContainSubstring("collection not found"))
120+
Expect(err.Error()).To(ContainSubstring("collection non-existent not found"))
121121
})
122122

123123
It("should not remove sources from non-existent collections", func() {
124124
err := sourceManager.RemoveSource("non-existent", "https://example.com")
125125
Expect(err).ToNot(BeNil())
126-
Expect(err.Error()).To(ContainSubstring("collection not found"))
126+
Expect(err.Error()).To(ContainSubstring("collection non-existent not found"))
127127
})
128128
})
129129

@@ -169,6 +169,10 @@ var _ = Describe("SourceManager", func() {
169169
})
170170

171171
Context("URL Sanitization", func() {
172+
BeforeEach(func() {
173+
sourceManager.RegisterCollection(TestCollection, kb)
174+
})
175+
172176
It("should sanitize URLs for filesystem safety", func() {
173177
// Add a source with a complex URL
174178
complexURL := "https://example.com/path?query=value&param=123#section"

0 commit comments

Comments
 (0)