Skip to content

Commit

Permalink
ci fix: run e2e tests with mqtt logs
Browse files Browse the repository at this point in the history
  • Loading branch information
usuletw022 committed Mar 25, 2024
1 parent f8f5651 commit 1d46749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e_tests/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ start_docker_compose_for_everest() {

echo "Waiting for services to initialize..."
sleep 120
docker-compose logs mqtt
}

# Function to stop Docker Compose
Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/test_driver/end_to_end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func shutdownBrokerConnection(t *testing.T, client mqtt.Client, wg *sync.WaitGro
func setupBrokerConnection(t *testing.T, wg *sync.WaitGroup) (mqtt.Client, func()) {
brokerAddr := os.Getenv("MQTT_BROKER_ADDR")
if brokerAddr == "" {
brokerAddr = "localhost:1883"
brokerAddr = "localhost:1884"
}

opts := mqtt.NewClientOptions()
Expand Down

0 comments on commit 1d46749

Please sign in to comment.