You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2025/12/22 10:53:29 UTC

(opendal) branch xuanwo/fix-go-listprefix created (now a760ba392)

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a change to branch xuanwo/fix-go-listprefix
in repository https://gitbox.apache.org/repos/asf/opendal.git


      at a760ba392 ci(bindings/go): Remove unexpected list preix tests

This branch includes the following new commits:

     new a760ba392 ci(bindings/go): Remove unexpected list preix tests

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(opendal) 01/01: ci(bindings/go): Remove unexpected list preix tests

Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch xuanwo/fix-go-listprefix
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit a760ba392840e861f513c24bda5f0c6151db023c
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Dec 22 18:53:10 2025 +0800

    ci(bindings/go): Remove unexpected list preix tests
---
 bindings/go/tests/behavior_tests/list_test.go | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/bindings/go/tests/behavior_tests/list_test.go b/bindings/go/tests/behavior_tests/list_test.go
index d36c90775..1da3cf636 100644
--- a/bindings/go/tests/behavior_tests/list_test.go
+++ b/bindings/go/tests/behavior_tests/list_test.go
@@ -36,7 +36,6 @@ func testsList(cap *opendal.Capability) []behaviorTest {
 	return []behaviorTest{
 		testListCheck,
 		testListDir,
-		testListPrefix,
 		testListRichDir,
 		testListEmptyDir,
 		testListNonExistDir,
@@ -79,21 +78,6 @@ func testListDir(assert *require.Assertions, op *opendal.Operator, fixture *fixt
 	assert.True(found, "file must be found in list")
 }
 
-func testListPrefix(assert *require.Assertions, op *opendal.Operator, fixture *fixture) {
-	path, content, _ := fixture.NewFile()
-
-	assert.Nil(op.Write(path, content), "write must succeed")
-
-	obs, err := op.List(path[:len(path)-1])
-	assert.Nil(err)
-	defer obs.Close()
-	assert.True(obs.Next())
-	assert.Nil(obs.Error())
-
-	entry := obs.Entry()
-	assert.Equal(path, entry.Path())
-}
-
 func testListRichDir(assert *require.Assertions, op *opendal.Operator, fixture *fixture) {
 	parent := fixture.NewDirPath()
 	assert.Nil(op.CreateDir(parent))