File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1254,7 +1254,7 @@ func TestConcurrent(t *testing.T) {
12541254
12551255 var fatalError string
12561256 var once sync.Once
1257- fatal := func (s string , vals ... interface {}) {
1257+ fatalf := func (s string , vals ... interface {}) {
12581258 once .Do (func () {
12591259 fatalError = fmt .Sprintf (s , vals ... )
12601260 })
@@ -1269,21 +1269,21 @@ func TestConcurrent(t *testing.T) {
12691269
12701270 if err != nil {
12711271 if err .Error () != "Error 1040: Too many connections" {
1272- fatal ("Error on Conn %d: %s" , id , err .Error ())
1272+ fatalf ("Error on Conn %d: %s" , id , err .Error ())
12731273 }
12741274 return
12751275 }
12761276
12771277 // keep the connection busy until all connections are open
12781278 for remaining > 0 {
12791279 if _ , err = tx .Exec ("DO 1" ); err != nil {
1280- fatal ("Error on Conn %d: %s" , id , err .Error ())
1280+ fatalf ("Error on Conn %d: %s" , id , err .Error ())
12811281 return
12821282 }
12831283 }
12841284
12851285 if err = tx .Commit (); err != nil {
1286- fatal ("Error on Conn %d: %s" , id , err .Error ())
1286+ fatalf ("Error on Conn %d: %s" , id , err .Error ())
12871287 return
12881288 }
12891289
You can’t perform that action at this time.
0 commit comments