Skip to content

Commit ea44e5d

Browse files
authored
Merge pull request #180 from tobiasschuerg/ci/platformio
ci: platformio
2 parents 9323c22 + 0bbdcbf commit ea44e5d

File tree

5 files changed

+9
-120
lines changed

5 files changed

+9
-120
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
.vscode
3+
.pio
34
*.txt
45
customSettings.h

examples/PlatformIO_BasicWrite/platformio.ini

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/PlatformIO_BasicWrite/src/main.cpp

Lines changed: 0 additions & 98 deletions
This file was deleted.

platformio.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
[platformio]
7-
src_dir = ./examples/
7+
src_dir = ./test/
88

99
[env]
1010
framework = arduino
@@ -38,9 +38,8 @@ lib_deps =
3838

3939
[env:esp8266BasicTest]
4040
extends = esp8266_common
41-
src_filter = -<*> +<PlatformIO_BasicWrite/>
4241

4342
[env:esp32BasicTest]
4443
extends = esp32_common
45-
src_filter = -<*> +<PlatformIO_BasicWrite/>
44+
4645

test/Test.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ void Test::testOptions() {
141141
TEST_ASSERT(c._writeOptions._retryInterval == 5);
142142
TEST_ASSERT(c._writeOptions._maxRetryAttempts == 3);
143143
TEST_ASSERT(c._writeOptions._maxRetryInterval == 300);
144-
//ConnectionInfo connInfo = { "http://localhost:8086", "","", "my-token", 2, "", "", nullptr, false, "" };
145-
ConnectionInfo connInfo = {.serverUrl= "http://localhost:8086", .authToken = "my-token"};
144+
ConnectionInfo connInfo = {
145+
serverUrl: "http://localhost:8086",
146+
bucket: "",
147+
org: "",
148+
authToken: "my-token"
149+
};
146150
HTTPService s(&connInfo);
147151
TEST_ASSERT(!s._httpOptions._connectionReuse);
148152
TEST_ASSERT(s._httpOptions._httpReadTimeout == 5000);

0 commit comments

Comments
 (0)