File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 44package  db // it's not db_test, because this file is for testing the private type halfCommitter 
55
66import  (
7- 	"fmt " 
7+ 	"errors " 
88	"testing" 
99
1010	"github.com/stretchr/testify/assert" 
@@ -80,7 +80,7 @@ func Test_halfCommitter(t *testing.T) {
8080		testWithCommitter (mockCommitter , func (committer  Committer ) error  {
8181			defer  committer .Close ()
8282			if  true  {
83- 				return  fmt . Errorf ("error" )
83+ 				return  errors . New ("error" )
8484			}
8585			return  committer .Commit ()
8686		})
@@ -94,7 +94,7 @@ func Test_halfCommitter(t *testing.T) {
9494		testWithCommitter (mockCommitter , func (committer  Committer ) error  {
9595			committer .Close ()
9696			committer .Commit ()
97- 			return  fmt . Errorf ("error" )
97+ 			return  errors . New ("error" )
9898		})
9999
100100		mockCommitter .Assert (t )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments