@@ -692,21 +692,22 @@ def testUpdateconfigPbkdf2(self):
692692
693693 ### test replacement of old default value
694694 replace_in_file (self .dirname + "/config.ini" ,
695- "= 2000000" , "= 10000" )
695+ "= 250000" , "= 10000" )
696+
696697 with captured_output () as (out , err ):
697698 sys .argv = ['main' , '-i' , self .dirname , 'update' ,
698699 self .dirname + "/config2.ini" ]
699700 ret = self .admin .main ()
700701
701702 out = out .getvalue ().strip ()
702703 print (out )
703- expected = "from old default of 10000 to new default of 2000000 ."
704+ expected = "from old default of 10000 to new default of 250000 ."
704705
705706 self .assertIn (expected , out )
706707 self .assertTrue (os .path .isfile (self .dirname + "/config2.ini" ))
707708 self .assertEqual (find_in_file (self .dirname + "/config2.ini" ,
708- "^password_.*= 2000000 $" ),
709- "password_pbkdf2_default_rounds = 2000000 " )
709+ "^password_.*= 250000 $" ),
710+ "password_pbkdf2_default_rounds = 250000 " )
710711
711712 # Reopen the db closed by previous call
712713 self .admin = AdminTool ()
@@ -722,7 +723,7 @@ def testUpdateconfigPbkdf2(self):
722723 out = out .getvalue ().strip ()
723724 print (out )
724725 expected = ("Update 'password_pbkdf2_default_rounds' to a number "
725- "equal to or larger\n than 2000000 ." )
726+ "equal to or larger\n than 250000 ." )
726727
727728 self .assertIn (expected , out )
728729 self .assertTrue (os .path .isfile (self .dirname + "/config2.ini" ))
0 commit comments