@@ -73,8 +73,7 @@ public void PutFileTest()
7373 extra . Crc32 = 123 ;
7474 extra . CheckCrc = CheckCrcType . CHECK ;
7575 extra . Params = new System . Collections . Generic . Dictionary < string , string > ( ) ;
76- extra . Scope = Bucket ;
77- PutPolicy put = new PutPolicy ( extra . Scope ) ;
76+ PutPolicy put = new PutPolicy ( Bucket ) ;
7877 TmpFIle file = new TmpFIle ( 1024 * 10 ) ;
7978 target . PutFinished += new EventHandler < PutRet > ( ( o , e ) => {
8079 file . Del ( ) ;
@@ -105,8 +104,7 @@ public void PutFileWithoutKeyTest()
105104 extra . Crc32 = 123 ;
106105 extra . CheckCrc = CheckCrcType . CHECK ;
107106 extra . Params = new System . Collections . Generic . Dictionary < string , string > ( ) ;
108- extra . Scope = Bucket ;
109- PutPolicy put = new PutPolicy ( extra . Scope ) ;
107+ PutPolicy put = new PutPolicy ( Bucket ) ;
110108 TmpFIle file = new TmpFIle ( 1024 * 10 ) ;
111109 target . PutFinished += new EventHandler < PutRet > ( ( o , e ) => {
112110 file . Del ( ) ;
@@ -133,8 +131,7 @@ public void PutTest()
133131 extra . Crc32 = 123 ;
134132 extra . CheckCrc = CheckCrcType . CHECK ;
135133 extra . Params = new System . Collections . Generic . Dictionary < string , string > ( ) ;
136- extra . Scope = Bucket ;
137- PutPolicy put = new PutPolicy ( extra . Scope ) ;
134+ PutPolicy put = new PutPolicy ( Bucket ) ;
138135 target . PutFinished += new EventHandler < PutRet > ( ( o , e ) => {
139136 if ( e . OK ) {
140137 RSHelper . RSDel ( Bucket , key ) ;
0 commit comments