File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ func TestRepmgrInitialization(t *testing.T) {
33
33
UserConfigPath : repgmrUserConfigFilePath ,
34
34
PasswordConfigPath : repgmrPasswordConfigFilePath ,
35
35
DataDir : repmgrTestDirectory ,
36
+ MachineID : "abcdefg1234567" ,
36
37
PrivateIP : "127.0.0.1" ,
37
38
Credentials : admin.Credential {
38
39
Username : "user" ,
@@ -91,8 +92,8 @@ func TestRepmgrInitialization(t *testing.T) {
91
92
t .Fatal (err )
92
93
}
93
94
94
- if config ["node_name" ] != "'127.0.0.1 '" {
95
- t .Fatalf ("expected node_name to be '127.0.0.1 ', got %v" , config ["node_name" ])
95
+ if config ["node_name" ] != "'abcdefg1234567.vm.test-app.internal '" {
96
+ t .Fatalf ("expected node_name to be 'abcdefg1234567.vm.test-app.internal ', got %v" , config ["node_name" ])
96
97
}
97
98
98
99
if config ["location" ] != "'dev'" {
@@ -122,6 +123,7 @@ func TestRepmgrNodeIDGeneration(t *testing.T) {
122
123
123
124
DataDir : repmgrTestDirectory ,
124
125
PrivateIP : "127.0.0.1" ,
126
+ MachineID : "abcdefg1234567" ,
125
127
Port : 5433 ,
126
128
DatabaseName : "repmgr" ,
127
129
Credentials : admin.Credential {
You can’t perform that action at this time.
0 commit comments