Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benwaffle committed Aug 6, 2024
1 parent 21f810a commit 63e4bfc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/flypg/repmgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestRepmgrInitialization(t *testing.T) {
UserConfigPath: repgmrUserConfigFilePath,
PasswordConfigPath: repgmrPasswordConfigFilePath,
DataDir: repmgrTestDirectory,
MachineID: "abcdefg1234567",
PrivateIP: "127.0.0.1",
Credentials: admin.Credential{
Username: "user",
Expand Down Expand Up @@ -91,8 +92,8 @@ func TestRepmgrInitialization(t *testing.T) {
t.Fatal(err)
}

if config["node_name"] != "'127.0.0.1'" {
t.Fatalf("expected node_name to be '127.0.0.1', got %v", config["node_name"])
if config["node_name"] != "'abcdefg1234567.vm.test-app.internal'" {
t.Fatalf("expected node_name to be 'abcdefg1234567.vm.test-app.internal', got %v", config["node_name"])
}

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

DataDir: repmgrTestDirectory,
PrivateIP: "127.0.0.1",
MachineID: "abcdefg1234567",
Port: 5433,
DatabaseName: "repmgr",
Credentials: admin.Credential{
Expand Down

0 comments on commit 63e4bfc

Please sign in to comment.