@@ -1724,7 +1724,7 @@ describe('test/object.test.js', () => {
17241724 } ) ;
17251725 } ) ;
17261726
1727- describe ( 'list()' , ( ) => {
1727+ describe . skip ( 'list()' , ( ) => {
17281728 // oss.jpg
17291729 // fun/test.jpg
17301730 // fun/movie/001.avi
@@ -1838,7 +1838,7 @@ describe('test/object.test.js', () => {
18381838 } ) ;
18391839 } ) ;
18401840
1841- describe ( 'listV2()' , ( ) => {
1841+ describe . skip ( 'listV2()' , ( ) => {
18421842 let listPrefix ;
18431843 before ( async ( ) => {
18441844 listPrefix = `${ prefix } oss-client/listV2/` ;
@@ -2075,13 +2075,13 @@ describe('test/object.test.js', () => {
20752075 it ( 'should error when positio not match' , async ( ) => {
20762076 await store . append ( name , Buffer . from ( 'foo' ) ) ;
20772077
2078- try {
2079- await store . append ( name , Buffer . from ( 'foo' ) ) ;
2080- throw new Error ( 'should not run' ) ;
2081- } catch ( err ) {
2082- assert ( err . message === 'Position is not equal to file length' ) ;
2083- assert ( err . name === 'PositionNotEqualToLengthError' ) ;
2084- }
2078+ await assert . rejects (
2079+ store . append ( name , Buffer . from ( 'foo' ) ) ,
2080+ err =>
2081+ err . message === 'Position is not equal to file length' &&
2082+ err . name === 'PositionNotEqualToLengthError' &&
2083+ err . nextAppendPosition === '3'
2084+ ) ;
20852085 } ) ;
20862086
20872087 it ( 'should use nextAppendPosition to append next' , async ( ) => {
0 commit comments