浏览代码

nil check

Josh Yan 9 月之前
父节点
当前提交
632237139e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/routes_create_test.go

+ 2 - 2
server/routes_create_test.go

@@ -690,8 +690,8 @@ func TestCreateVersion(t *testing.T) {
 			t.Fatal(err)
 		}
 
-		if m.Ollama.String() != "" {
-			t.Errorf("got %s != want \"\"", m.Ollama)
+		if m.Ollama != nil {
+			t.Errorf("got %s != want nil", m.Ollama)
 		}
 	})