This commit is contained in:
Josh Yan
2024-07-30 15:48:40 -07:00
parent 632237139e
commit 3958d82908
8 changed files with 33 additions and 25 deletions

View File

@@ -659,8 +659,8 @@ func TestCreateVersion(t *testing.T) {
t.Fatal(err)
}
if m.Ollama.String() != "0.2.3" {
t.Errorf("got %s != want 0.2.3", m.Ollama)
if m.Ollama != "v0.2.3" {
t.Errorf("got %s != want v0.2.3", m.Ollama)
}
t.Run("no version", func(t *testing.T) {
@@ -690,8 +690,8 @@ func TestCreateVersion(t *testing.T) {
t.Fatal(err)
}
if m.Ollama != nil {
t.Errorf("got %s != want nil", m.Ollama)
if m.Ollama != "" {
t.Errorf("got %s != want empty", m.Ollama)
}
})
@@ -734,8 +734,8 @@ func TestCreateVersion(t *testing.T) {
t.Fatal(err)
}
if m.Ollama.String() != "0.2.3" {
t.Errorf("got %s != want 0.2.3", m.Ollama)
if m.Ollama != "v0.2.3" {
t.Errorf("got %s != want v0.2.3", m.Ollama)
}
})
}