Do some porting to make diffing easier

This commit is contained in:
Jeff Mitchell
2017-02-24 10:45:29 -05:00
parent 054a60753f
commit bfaf9022fa
12 changed files with 172 additions and 23 deletions

View File

@@ -62,6 +62,7 @@ func TestLoadConfigFile(t *testing.T) {
DisableCache: true,
DisableMlock: true,
EnableUI: true,
MaxLeaseTTL: 10 * time.Hour,
MaxLeaseTTLRaw: "10h",
@@ -133,6 +134,7 @@ func TestLoadConfigFile_json(t *testing.T) {
DefaultLeaseTTL: 10 * time.Hour,
DefaultLeaseTTLRaw: "10h",
ClusterName: "testcluster",
EnableUI: true,
}
if !reflect.DeepEqual(config, expected) {
t.Fatalf("expected \n\n%#v\n\n to be \n\n%#v\n\n", config, expected)
@@ -180,6 +182,8 @@ func TestLoadConfigFile_json2(t *testing.T) {
CacheSize: 45678,
EnableUI: true,
Telemetry: &Telemetry{
StatsiteAddr: "foo",
StatsdAddr: "bar",
@@ -232,6 +236,8 @@ func TestLoadConfigDir(t *testing.T) {
DisableClustering: true,
},
EnableUI: true,
Telemetry: &Telemetry{
StatsiteAddr: "qux",
StatsdAddr: "baz",