Skip to content

Commit

Permalink
enhance: [GoSDK] Remove example in main pkg to make ut script work (#…
Browse files Browse the repository at this point in the history
…37472)

Related to #31293

Example with main func/package causes `go list` command failed with vcs
error. This PR removes example files with main package. The example
snippet shall be added back in runnable test format.

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
  • Loading branch information
congqixia authored Nov 7, 2024
1 parent aed3b94 commit f813fb4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 506 deletions.
4 changes: 2 additions & 2 deletions client/column/columns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func TestIDColumns(t *testing.T) {

t.Run("nil id", func(t *testing.T) {
_, err := IDColumns(intPKCol, nil, 0, -1)
assert.Error(t, err)
assert.NoError(t, err)
_, err = IDColumns(strPKCol, nil, 0, -1)
assert.Error(t, err)
assert.NoError(t, err)

idField := &schemapb.IDs{}
col, err := IDColumns(intPKCol, idField, 0, -1)
Expand Down
89 changes: 0 additions & 89 deletions client/example/database/main.go

This file was deleted.

Loading

0 comments on commit f813fb4

Please sign in to comment.