@@ -362,7 +362,7 @@ func TestBackendConfig_InvalidRegion(t *testing.T) {
362362 confDiags := b .Configure (configSchema )
363363 diags = diags .Append (confDiags )
364364
365- if diff := cmp .Diff (diags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
365+ if diff := cmp .Diff (diags , tc .expectedDiags , diagnosticComparer ); diff != "" {
366366 t .Errorf ("unexpected diagnostics difference: %s" , diff )
367367 }
368368 })
@@ -528,7 +528,7 @@ func TestBackendConfig_DynamoDBEndpoint(t *testing.T) {
528528 raw , diags := testBackendConfigDiags (t , New (), backend .TestWrapConfig (config ))
529529 b := raw .(* Backend )
530530
531- if diff := cmp .Diff (diags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
531+ if diff := cmp .Diff (diags , tc .expectedDiags , diagnosticComparer ); diff != "" {
532532 t .Errorf ("unexpected diagnostics difference: %s" , diff )
533533 }
534534
@@ -616,7 +616,8 @@ func TestBackendConfig_IAMEndpoint(t *testing.T) {
616616 pathString (cty .GetAttrPath ("iam_endpoint" )),
617617 pathString (cty .GetAttrPath ("endpoints" ).GetAttr ("iam" )),
618618 ),
619- )},
619+ ),
620+ },
620621 },
621622 "envvar" : {
622623 vars : map [string ]string {
@@ -660,7 +661,7 @@ func TestBackendConfig_IAMEndpoint(t *testing.T) {
660661
661662 _ , diags := testBackendConfigDiags (t , New (), backend .TestWrapConfig (config ))
662663
663- if diff := cmp .Diff (diags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
664+ if diff := cmp .Diff (diags , tc .expectedDiags , diagnosticComparer ); diff != "" {
664665 t .Errorf ("unexpected diagnostics difference: %s" , diff )
665666 }
666667 })
@@ -736,7 +737,8 @@ func TestBackendConfig_S3Endpoint(t *testing.T) {
736737 pathString (cty .GetAttrPath ("endpoint" )),
737738 pathString (cty .GetAttrPath ("endpoints" ).GetAttr ("s3" )),
738739 ),
739- )},
740+ ),
741+ },
740742 },
741743 "envvar" : {
742744 vars : map [string ]string {
@@ -783,7 +785,7 @@ func TestBackendConfig_S3Endpoint(t *testing.T) {
783785 raw , diags := testBackendConfigDiags (t , New (), backend .TestWrapConfig (config ))
784786 b := raw .(* Backend )
785787
786- if diff := cmp .Diff (diags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
788+ if diff := cmp .Diff (diags , tc .expectedDiags , diagnosticComparer ); diff != "" {
787789 t .Errorf ("unexpected diagnostics difference: %s" , diff )
788790 }
789791
@@ -943,7 +945,7 @@ func TestBackendConfig_EC2MetadataEndpoint(t *testing.T) {
943945 raw , diags := testBackendConfigDiags (t , New (), backend .TestWrapConfig (config ))
944946 b := raw .(* Backend )
945947
946- if diff := cmp .Diff (diags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
948+ if diff := cmp .Diff (diags , tc .expectedDiags , diagnosticComparer ); diff != "" {
947949 t .Errorf ("unexpected diagnostics difference: %s" , diff )
948950 }
949951
@@ -1435,7 +1437,7 @@ func TestBackendConfig_PrepareConfigValidation(t *testing.T) {
14351437
14361438 _ , valDiags := b .PrepareConfig (populateSchema (t , b .ConfigSchema (), tc .config ))
14371439
1438- if diff := cmp .Diff (valDiags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
1440+ if diff := cmp .Diff (valDiags , tc .expectedDiags , diagnosticComparer ); diff != "" {
14391441 t .Errorf ("unexpected diagnostics difference: %s" , diff )
14401442 }
14411443 })
@@ -2497,7 +2499,7 @@ func TestBackendConfigKmsKeyId(t *testing.T) {
24972499 diags = diags .Append (confDiags )
24982500 }
24992501
2500- if diff := cmp .Diff (diags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
2502+ if diff := cmp .Diff (diags , tc .expectedDiags , diagnosticComparer ); diff != "" {
25012503 t .Fatalf ("unexpected diagnostics difference: %s" , diff )
25022504 }
25032505
@@ -2627,7 +2629,7 @@ func TestBackendSSECustomerKey(t *testing.T) {
26272629 diags = diags .Append (confDiags )
26282630 }
26292631
2630- if diff := cmp .Diff (diags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
2632+ if diff := cmp .Diff (diags , tc .expectedDiags , diagnosticComparer ); diff != "" {
26312633 t .Fatalf ("unexpected diagnostics difference: %s" , diff )
26322634 }
26332635
@@ -3287,7 +3289,7 @@ func TestAssumeRole_PrepareConfigValidation(t *testing.T) {
32873289 var diags tfdiags.Diagnostics
32883290 validateNestedAttribute (assumeRoleSchema , config , path , & diags )
32893291
3290- if diff := cmp .Diff (diags , tc .expectedDiags , tfdiags . DiagnosticComparer ); diff != "" {
3292+ if diff := cmp .Diff (diags , tc .expectedDiags , diagnosticComparer ); diff != "" {
32913293 t .Errorf ("unexpected diagnostics difference: %s" , diff )
32923294 }
32933295 })
0 commit comments