Skip to content

Commit 11e3509

Browse files
authored
Merge pull request #394 from yuzhiquan/master
fix: modify typo
2 parents 9c3f174 + b458f0d commit 11e3509

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

pkg/exporters/stackdriver/config/config_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import (
2525

2626
func TestApplyConfiguration(t *testing.T) {
2727
testCases := []struct {
28-
name string
29-
orignalConfig StackdriverExporterConfig
30-
wantedConfig StackdriverExporterConfig
28+
name string
29+
originalConfig StackdriverExporterConfig
30+
wantedConfig StackdriverExporterConfig
3131
}{
3232
{
3333
name: "normal",
34-
orignalConfig: StackdriverExporterConfig{
34+
originalConfig: StackdriverExporterConfig{
3535
ExportPeriod: "60s",
3636
MetadataFetchTimeout: "600s",
3737
MetadataFetchInterval: "10s",
@@ -58,7 +58,7 @@ func TestApplyConfiguration(t *testing.T) {
5858
},
5959
{
6060
name: "staging API endpoint",
61-
orignalConfig: StackdriverExporterConfig{
61+
originalConfig: StackdriverExporterConfig{
6262
ExportPeriod: "60s",
6363
MetadataFetchTimeout: "600s",
6464
MetadataFetchInterval: "10s",
@@ -84,8 +84,8 @@ func TestApplyConfiguration(t *testing.T) {
8484
},
8585
},
8686
{
87-
name: "empty",
88-
orignalConfig: StackdriverExporterConfig{},
87+
name: "empty",
88+
originalConfig: StackdriverExporterConfig{},
8989
wantedConfig: StackdriverExporterConfig{
9090
ExportPeriod: "1m0s",
9191
MetadataFetchTimeout: "10m0s",
@@ -98,9 +98,9 @@ func TestApplyConfiguration(t *testing.T) {
9898

9999
for _, test := range testCases {
100100
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. \nGot: %+v", test.wantedConfig, test.orignalConfig)
101+
test.originalConfig.ApplyConfiguration()
102+
if !reflect.DeepEqual(test.originalConfig, test.wantedConfig) {
103+
t.Errorf("Wanted: %+v. \nGot: %+v", test.wantedConfig, test.originalConfig)
104104
}
105105
})
106106
}

pkg/systemlogmonitor/logwatchers/filelog/log_watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func NewSyslogWatcherOrDie(cfg types.WatcherConfig) types.LogWatcher {
6969
}
7070
}
7171

72-
// Make sure NewSyslogWathcer is types.WatcherCreateFunc.
72+
// Make sure NewSyslogWatcher is types.WatcherCreateFunc.
7373
var _ types.WatcherCreateFunc = NewSyslogWatcherOrDie
7474

7575
// Watch starts the filelog watcher.

0 commit comments

Comments
 (0)