Skip to content

Commit

Permalink
use hostname for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis authored Jul 15, 2024
1 parent 0770e78 commit 5528357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test_platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
version: '2.0'
ports: '1883:1883'
config: ${{ github.workspace }}/.github/etc/mosquitto.conf
container-name: 'mosquitto'
- name: Test
run: |
pio test -e native -v
3 changes: 2 additions & 1 deletion test/test_client_native/test_client_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ uint32_t onPublishCbId = 6;
std::atomic_bool exitProgram(false);
std::thread t;

const IPAddress broker(127,0,0,1);
//const IPAddress broker(127,0,0,1);
//const char* broker = "localhost";
const char* broker = "mosquitto";
const uint16_t broker_port = 1883;

/*
Expand Down

0 comments on commit 5528357

Please sign in to comment.