feat(instrumentation): work on settings model for internal metrics publishing, #4696
This commit is contained in:
@@ -89,5 +89,14 @@ func TestLoadingSettings(t *testing.T) {
|
||||
So(DataPath, ShouldEqual, "/tmp/env_override")
|
||||
})
|
||||
|
||||
Convey("instance_name default to hostname even if hostname env is emtpy", func() {
|
||||
NewConfigContext(&CommandLineArgs{
|
||||
HomePath: "../../",
|
||||
})
|
||||
|
||||
hostname, _ := os.Hostname()
|
||||
So(InstanceName, ShouldEqual, hostname)
|
||||
})
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user