@@ -25,13 +25,13 @@ import (
25
25
26
26
func TestApplyConfiguration (t * testing.T ) {
27
27
testCases := []struct {
28
- name string
29
- orignalConfig StackdriverExporterConfig
30
- wantedConfig StackdriverExporterConfig
28
+ name string
29
+ originalConfig StackdriverExporterConfig
30
+ wantedConfig StackdriverExporterConfig
31
31
}{
32
32
{
33
33
name : "normal" ,
34
- orignalConfig : StackdriverExporterConfig {
34
+ originalConfig : StackdriverExporterConfig {
35
35
ExportPeriod : "60s" ,
36
36
MetadataFetchTimeout : "600s" ,
37
37
MetadataFetchInterval : "10s" ,
@@ -58,7 +58,7 @@ func TestApplyConfiguration(t *testing.T) {
58
58
},
59
59
{
60
60
name : "staging API endpoint" ,
61
- orignalConfig : StackdriverExporterConfig {
61
+ originalConfig : StackdriverExporterConfig {
62
62
ExportPeriod : "60s" ,
63
63
MetadataFetchTimeout : "600s" ,
64
64
MetadataFetchInterval : "10s" ,
@@ -84,8 +84,8 @@ func TestApplyConfiguration(t *testing.T) {
84
84
},
85
85
},
86
86
{
87
- name : "empty" ,
88
- orignalConfig : StackdriverExporterConfig {},
87
+ name : "empty" ,
88
+ originalConfig : StackdriverExporterConfig {},
89
89
wantedConfig : StackdriverExporterConfig {
90
90
ExportPeriod : "1m0s" ,
91
91
MetadataFetchTimeout : "10m0s" ,
@@ -98,9 +98,9 @@ func TestApplyConfiguration(t *testing.T) {
98
98
99
99
for _ , test := range testCases {
100
100
t .Run (test .name , func (t * testing.T ) {
101
- test .orignalConfig .ApplyConfiguration ()
102
- if ! reflect .DeepEqual (test .orignalConfig , test .wantedConfig ) {
103
- t .Errorf ("Wanted: %+v. \n Got: %+v" , test .wantedConfig , test .orignalConfig )
101
+ test .originalConfig .ApplyConfiguration ()
102
+ if ! reflect .DeepEqual (test .originalConfig , test .wantedConfig ) {
103
+ t .Errorf ("Wanted: %+v. \n Got: %+v" , test .wantedConfig , test .originalConfig )
104
104
}
105
105
})
106
106
}
0 commit comments