fix: adapt test to error changes

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2025-05-30 17:43:59 +02:00
parent 45c58752e5
commit 1cc4525f15

View File

@@ -26,7 +26,7 @@ var _ = Describe("utils/base64 tests", func() {
b64, err := GetContentURIAsBase64(input)
Expect(b64).To(Equal(""))
Expect(err).ToNot(BeNil())
Expect(err).To(MatchError("not valid string"))
Expect(err).To(MatchError("not valid base64 data type string"))
})
It("GetImageURLAsBase64 can actually download images and calculates something", func() {
// This test doesn't actually _check_ the results at this time, which is bad, but there wasn't a test at all before...