@@ -12,17 +12,17 @@ func TestGraphDefinition_DisableInnoDB(t *testing.T) {
1212
1313 mysql .DisableInnoDB = true
1414 graphdef := mysql .GraphDefinition ()
15- if len (graphdef ) != 8 {
16- t .Errorf ("GetTempfilename : %d should be 7 " , len (graphdef ))
15+ if n := 8 ; len (graphdef ) != n {
16+ t .Errorf ("GraphDefinition : %d should be %d " , len (graphdef ), n )
1717 }
1818}
1919
2020func TestGraphDefinition (t * testing.T ) {
2121 var mysql MySQLPlugin
2222
2323 graphdef := mysql .GraphDefinition ()
24- if len (graphdef ) != 29 {
25- t .Errorf ("GetTempfilename : %d should be 28 " , len (graphdef ))
24+ if n := 29 ; len (graphdef ) != n {
25+ t .Errorf ("GraphDefinition : %d should be %d " , len (graphdef ), n )
2626 }
2727}
2828
@@ -32,8 +32,8 @@ func TestGraphDefinition_DisableInnoDB_EnableExtended(t *testing.T) {
3232 mysql .DisableInnoDB = true
3333 mysql .EnableExtended = true
3434 graphdef := mysql .GraphDefinition ()
35- if len (graphdef ) != 18 {
36- t .Errorf ("GetTempfilename : %d should be 18 " , len (graphdef ))
35+ if n := 18 ; len (graphdef ) != n {
36+ t .Errorf ("GraphDefinition : %d should be %d " , len (graphdef ), n )
3737 }
3838}
3939
@@ -42,8 +42,8 @@ func TestGraphDefinition_EnableExtended(t *testing.T) {
4242
4343 mysql .EnableExtended = true
4444 graphdef := mysql .GraphDefinition ()
45- if len (graphdef ) != 39 {
46- t .Errorf ("GetTempfilename : %d should be 39 " , len (graphdef ))
45+ if n := 39 ; len (graphdef ) != n {
46+ t .Errorf ("GraphDefinition : %d should be %d " , len (graphdef ), n )
4747 }
4848}
4949
0 commit comments