Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Jan 21, 2017
1 parent 78c9c00 commit d1c45df
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions command/agent/config_parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ func TestConfig_Parse(t *testing.T) {
Addr: "127.0.0.1:9500",
Token: "token1",
Auth: "username:pass",
EnableSSL: true,
VerifySSL: true,
EnableSSL: &trueValue,
VerifySSL: &trueValue,
CAFile: "/path/to/ca/file",
CertFile: "/path/to/cert/file",
KeyFile: "/path/to/key/file",
ServerAutoJoin: true,
ClientAutoJoin: true,
AutoAdvertise: true,
ChecksUseAdvertise: true,
ServerAutoJoin: &trueValue,
ClientAutoJoin: &trueValue,
AutoAdvertise: &trueValue,
ChecksUseAdvertise: &trueValue,
},
Vault: &config.VaultConfig{
Addr: "127.0.0.1:9500",
Expand Down
20 changes: 10 additions & 10 deletions command/agent/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,18 @@ func TestConfig_Merge(t *testing.T) {
Consul: &config.ConsulConfig{
ServerServiceName: "1",
ClientServiceName: "1",
AutoAdvertise: false,
AutoAdvertise: &falseValue,
Addr: "1",
Timeout: 1 * time.Second,
Token: "1",
Auth: "1",
EnableSSL: false,
VerifySSL: false,
EnableSSL: &falseValue,
VerifySSL: &falseValue,
CAFile: "1",
CertFile: "1",
KeyFile: "1",
ServerAutoJoin: false,
ClientAutoJoin: false,
ServerAutoJoin: &falseValue,
ClientAutoJoin: &falseValue,
},
}

Expand Down Expand Up @@ -251,18 +251,18 @@ func TestConfig_Merge(t *testing.T) {
Consul: &config.ConsulConfig{
ServerServiceName: "2",
ClientServiceName: "2",
AutoAdvertise: true,
AutoAdvertise: &trueValue,
Addr: "2",
Timeout: 2 * time.Second,
Token: "2",
Auth: "2",
EnableSSL: true,
VerifySSL: true,
EnableSSL: &trueValue,
VerifySSL: &trueValue,
CAFile: "2",
CertFile: "2",
KeyFile: "2",
ServerAutoJoin: true,
ClientAutoJoin: true,
ServerAutoJoin: &trueValue,
ClientAutoJoin: &trueValue,
},
}

Expand Down
2 changes: 1 addition & 1 deletion nomad/structs/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ func TestJobDiff(t *testing.T) {
Objects: []*ObjectDiff{
{
Type: DiffTypeDeleted,
Name: "ParameretizedJob",
Name: "ParameterizedJob",
Fields: []*FieldDiff{
{
Type: DiffTypeDeleted,
Expand Down

0 comments on commit d1c45df

Please sign in to comment.