@@ -147,14 +147,11 @@ func TestGcpNativeObjectStorage(t *testing.T) {
147
147
value []byte
148
148
}{
149
149
{false , "abc/" , []byte ("123" )},
150
- {true , "abc/d/" , []byte ("1234" )},
151
- {false , "abc/d/e" , []byte ("12345" )},
150
+ {true , "abc/d" , []byte ("1234" )},
152
151
{true , "abc/e/d" , []byte ("12354" )},
153
152
{true , "key_/1/1" , []byte ("111" )},
154
- {true , "key_/1/2/" , []byte ("222" )},
155
- {false , "key_/1/2/3" , []byte ("333" )},
153
+ {true , "key_/1/2" , []byte ("222" )},
156
154
{true , "key_/2/3" , []byte ("333" )},
157
- {true , "key_/test.txt" , []byte ("333" )},
158
155
}
159
156
160
157
for _ , test := range prepareTests {
@@ -172,10 +169,10 @@ func TestGcpNativeObjectStorage(t *testing.T) {
172
169
prefix string
173
170
expectedValue []string
174
171
}{
175
- {true , "abc/" , []string {"abc/e/d" }},
176
- {true , "key_/" , []string {"key_/1/1" , "key_/2/3 " , "key_/test.txt " }},
177
- {false , "abc/" , []string {}},
178
- {false , "key_/" , []string {"key_/test.txt " }},
172
+ {true , "abc/" , []string {"abc/d" , "abc/ e/d" }},
173
+ {true , "key_/" , []string {"key_/1/1" , "key_/1/2 " , "key_/2/3 " }},
174
+ {false , "abc/" , []string {"abc/d" , "abc/e/" }},
175
+ {false , "key_/" , []string {"key_/1/" , "key_/2/ " }},
179
176
}
180
177
181
178
for _ , test := range insertWithPrefixTests {
0 commit comments