Skip to content

Commit 870e083

Browse files
Ben Iofeldavissp14
authored andcommitted
fix tests
1 parent 9baab31 commit 870e083

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/flypg/repmgr_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func TestRepmgrInitialization(t *testing.T) {
3333
UserConfigPath: repgmrUserConfigFilePath,
3434
PasswordConfigPath: repgmrPasswordConfigFilePath,
3535
DataDir: repmgrTestDirectory,
36+
MachineID: "abcdefg1234567",
3637
PrivateIP: "127.0.0.1",
3738
Credentials: admin.Credential{
3839
Username: "user",
@@ -91,8 +92,8 @@ func TestRepmgrInitialization(t *testing.T) {
9192
t.Fatal(err)
9293
}
9394

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"])
9697
}
9798

9899
if config["location"] != "'dev'" {
@@ -122,6 +123,7 @@ func TestRepmgrNodeIDGeneration(t *testing.T) {
122123

123124
DataDir: repmgrTestDirectory,
124125
PrivateIP: "127.0.0.1",
126+
MachineID: "abcdefg1234567",
125127
Port: 5433,
126128
DatabaseName: "repmgr",
127129
Credentials: admin.Credential{

0 commit comments

Comments
 (0)