Skip to content

Commit

Permalink
Merge pull request onflow#5801 from onflow/petera/fix-observer-bind-p…
Browse files Browse the repository at this point in the history
…ort-ci

[CI] Add static port for observer bind address in integration tests
  • Loading branch information
sideninja authored Apr 29, 2024
2 parents c20f91f + 44e1252 commit f634093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration/localnet/builder/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func prepareObserverService(i int, observerName string, agPublicKey string) Serv
fmt.Sprintf("--upstream-node-addresses=%s:%s", testnet.PrimaryAN, testnet.GRPCSecurePort),
fmt.Sprintf("--upstream-node-public-keys=%s", agPublicKey),
fmt.Sprintf("--observer-networking-key-path=/bootstrap/private-root-information/%s_key", observerName),
"--bind=0.0.0.0:0",
"--bind=0.0.0.0:3569",
fmt.Sprintf("--rpc-addr=%s:%s", observerName, testnet.GRPCPort),
fmt.Sprintf("--secure-rpc-addr=%s:%s", observerName, testnet.GRPCSecurePort),
fmt.Sprintf("--http-addr=%s:%s", observerName, testnet.GRPCWebPort),
Expand Down
2 changes: 1 addition & 1 deletion integration/testnet/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ func (net *FlowNetwork) addObserver(t *testing.T, conf ObserverConfig) {
Image: "gcr.io/flow-container-registry/observer:latest",
User: currentUser(),
Cmd: append([]string{
"--bind=0.0.0.0:0",
"--bind=0.0.0.0:3569",
fmt.Sprintf("--bootstrapdir=%s", DefaultBootstrapDir),
fmt.Sprintf("--datadir=%s", DefaultFlowDBDir),
fmt.Sprintf("--secretsdir=%s", DefaultFlowSecretsDBDir),
Expand Down

0 comments on commit f634093

Please sign in to comment.